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

@@ -76,6 +76,8 @@
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
@@ -95,7 +97,6 @@
config.commonPackages config.commonPackages
++ [ ++ [
dolphin dolphin
wireguard-tools
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are

View File

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

View File

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

View File

@@ -39,6 +39,14 @@
modifier = "Mod4"; modifier = "Mod4";
defaultWorkspace = "workspace number 1"; defaultWorkspace = "workspace number 1";
terminal = "alacritty"; 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
];
};
}