35 lines
681 B
Nix
35 lines
681 B
Nix
{
|
|
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 = false;
|
|
soundcardPciId = "0d:00.4";
|
|
};
|
|
|
|
users.users."${psCfg.user.name}".extraGroups = ["realtime"];
|
|
|
|
home-manager.users."${psCfg.user.name}" = {
|
|
home.packages = with pkgs; [
|
|
lmms
|
|
audacity
|
|
];
|
|
};
|
|
|
|
services.pipewire.extraConfig.pipewire."92-low-latency" = {
|
|
"context.properties" = {
|
|
"default.clock.rate" = 48000;
|
|
"default.clock.quantum" = 32;
|
|
"default.clock.min-quantum" = 32;
|
|
"default.clock.max-quantum" = 32;
|
|
};
|
|
};
|
|
}
|