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 11
11
12
12
fernunivpn = "openconnect --protocol=anyconnect -u $(cat ~/.fernuni-hagen/matrikelnummer.txt) vpn.fernuni-hagen.de" ;
13
13
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
+
14
23
capture-card = ''
15
24
CAPTURE_CARD_ID=$(arecord -l | grep UGREEN | awk '{print $2}' | cut -c 1)
16
25
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 20
20
}
21
21
] ;
22
22
} ;
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
+ } ;
23
37
} ;
24
38
25
39
alsa . enable = true ;
You can’t perform that action at this time.
0 commit comments