chocolatebar/audio: move audio settings, add RT pipewire config

This commit is contained in:
Benjamin Bädorf 2023-12-05 22:43:03 +01:00
parent 4bca094b0e
commit b8f2c04583
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
3 changed files with 37 additions and 5 deletions

View 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
}
'';
};
}

View file

@ -58,11 +58,6 @@ in {
];
};
musnix = {
enable = true;
kernel.realtime = true;
};
# For OpenProject development with https
security.pki.certificates = [
(builtins.readFile ./step-roots.pem)

View file

@ -4,6 +4,7 @@
./hardware-configuration.nix
./networking.nix
./audio.nix
./virtualisation
# ./factorio
];