feat: volume control on tux, moved wg into common

This commit is contained in:
2025-01-26 00:41:42 -08:00
parent 9b8bf921fe
commit 9a25a834a6
5 changed files with 25 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
rustup
nixfmt-rfc-style
asciiquarium
wireguard-tools
];
programs.nix-ld.enable = true;
programs.zsh.enable = true;

View File

@@ -10,5 +10,6 @@
./hm.nix
./i3.nix
./kanata.nix
./pipewire.nix
];
}

View File

@@ -39,6 +39,14 @@
modifier = "Mod4";
defaultWorkspace = "workspace number 1";
terminal = "alacritty";
keybindings =
let
modifier = config.xsession.windowManager.i3.config.modifier;
in
lib.mkOptionDefault {
"XF86AudioRaiseVolume" = "exec pamixer -i 5";
"XF86AudioLowerVolume" = "exec pamixer -d 5";
};
};
};
};

13
nix/modules/pipewire.nix Normal file
View File

@@ -0,0 +1,13 @@
{
lib,
config,
pkgs,
...
}:
{
config = lib.mkIf config.services.pipewire.enable {
environment.systemPackages = with pkgs; [
pamixer
];
};
}