2023-12-05 21:43:03 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
in {
|
|
|
|
musnix = {
|
|
|
|
enable = true;
|
2024-05-26 17:16:16 +00:00
|
|
|
kernel.realtime = false;
|
2023-12-05 21:43:03 +00:00
|
|
|
soundcardPciId = "0d:00.4";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users."${psCfg.user.name}".extraGroups = ["realtime"];
|
|
|
|
|
|
|
|
home-manager.users."${psCfg.user.name}" = {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
lmms
|
|
|
|
audacity
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-06-02 21:47:00 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-12-05 21:43:03 +00:00
|
|
|
};
|
|
|
|
}
|