The options API has been updated, in order for a more flexible setup with `local.modules.desktop.enable` being replaced with an enum of desktops at `local.systemVars.desktop`, which allows for switching desktop environments by changing a single option. This is so that we can switch to cosmic and only enable the programs we need (i.e. disable greetd because we use cosmic-greeter and enable terminals since that is desktop related). This is simpler than having a different module per desktop.
26 lines
522 B
Nix
26 lines
522 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
|
];
|
|
|
|
config = lib.mkIf (config.local.systemVars.desktop != "none") {
|
|
services = {
|
|
pulseaudio.enable = false;
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
lowLatency.enable = true;
|
|
};
|
|
};
|
|
# rtkit is optional but recommended
|
|
security.rtkit.enable = true;
|
|
};
|
|
}
|