feat: volume control on tux, moved wg into common
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -10,5 +10,6 @@
|
|||||||
./hm.nix
|
./hm.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
./kanata.nix
|
./kanata.nix
|
||||||
|
./pipewire.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
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