Skip to content

Commit d98f26c

Browse files
committed
some aliases
1 parent 393dd6e commit d98f26c

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

home-manager/shell.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ let
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

modules/services/autogain.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
}

modules/services/pipewire.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
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;

0 commit comments

Comments
 (0)