feat: volume control on tux, moved wg into common
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
rustup
|
||||
nixfmt-rfc-style
|
||||
asciiquarium
|
||||
wireguard-tools
|
||||
];
|
||||
programs.nix-ld.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
@@ -10,5 +10,6 @@
|
||||
./hm.nix
|
||||
./i3.nix
|
||||
./kanata.nix
|
||||
./pipewire.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
13
nix/modules/pipewire.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.services.pipewire.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
pamixer
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user