File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed
Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1111
1212 fernunivpn = "openconnect --protocol=anyconnect -u $(cat ~/.fernuni-hagen/matrikelnummer.txt) vpn.fernuni-hagen.de" ;
1313
14+ s = "nix-shell --run zsh -p" ;
15+ codex = "bunx @openai/codex" ;
16+
17+ # git alias
18+ gp = "git push" ;
19+ gc = "git commit" ;
20+ ga = "git add" ;
21+ gs = "git status" ;
22+
1423 capture-card = ''
1524 CAPTURE_CARD_ID=$(arecord -l | grep UGREEN | awk '{print $2}' | cut -c 1)
1625
Original file line number Diff line number Diff line change 1+ { pkgs , meta , ... } :
2+
3+ {
4+ systemd . user . services . disable-autogain = {
5+ description = "Disable autogain workaround" ;
6+
7+ # Adds the binaries from these packages to the service's PATH
8+ path = with pkgs ; [
9+ procps
10+ pipewire
11+ ] ;
12+
13+ serviceConfig = {
14+ # Use the command directly since it's now in the PATH
15+ ExecStart = "${ pkgs . unixtools . watch } /bin/watch -n 1 wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 100%" ;
16+ Restart = "on-failure" ;
17+ RestartSec = "5s" ;
18+ } ;
19+
20+ # Use the correct target for a user service
21+ wantedBy = [ "default.target" ] ;
22+ } ;
23+ }
Original file line number Diff line number Diff line change 2020 }
2121 ] ;
2222 } ;
23+
24+ "10-block-agc" = {
25+ "pulse.rules" = [
26+ {
27+ # Block every client from touching source (mic) volume
28+ matches = [
29+ { "application.process.binary" = "~.*" ; }
30+ ] ;
31+ actions = {
32+ quirks = [ "block-source-volume" ] ;
33+ } ;
34+ }
35+ ] ;
36+ } ;
2337 } ;
2438
2539 alsa . enable = true ;
You can’t perform that action at this time.
0 commit comments