chocolatebar/audio: move audio settings, add RT pipewire config
This commit is contained in:
parent
4bca094b0e
commit
b8f2c04583
36
hosts/chocolatebar/audio.nix
Normal file
36
hosts/chocolatebar/audio.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
psCfg = config.pub-solar;
|
||||
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
||||
in {
|
||||
musnix = {
|
||||
enable = true;
|
||||
kernel.realtime = true;
|
||||
soundcardPciId = "0d:00.4";
|
||||
};
|
||||
|
||||
users.users."${psCfg.user.name}".extraGroups = ["realtime"];
|
||||
|
||||
home-manager.users."${psCfg.user.name}" = {
|
||||
home.packages = with pkgs; [
|
||||
lmms
|
||||
audacity
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
|
||||
context.properties = {
|
||||
default.clock.rate = 48000
|
||||
default.clock.quantum = 32
|
||||
default.clock.min-quantum = 32
|
||||
default.clock.max-quantum = 32
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -58,11 +58,6 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
musnix = {
|
||||
enable = true;
|
||||
kernel.realtime = true;
|
||||
};
|
||||
|
||||
# For OpenProject development with https
|
||||
security.pki.certificates = [
|
||||
(builtins.readFile ./step-roots.pem)
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
./hardware-configuration.nix
|
||||
|
||||
./networking.nix
|
||||
./audio.nix
|
||||
./virtualisation
|
||||
# ./factorio
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue