feat(nixos): Modularize drivers
This commit is contained in:
parent
e788715c0f
commit
04407ae45f
2 changed files with 12 additions and 11 deletions
12
modules/nixos/base/drivers/default.nix
Normal file
12
modules/nixos/base/drivers/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
_: {
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true; # Used for pulseaudio.
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
services.printing.enable = true;
|
||||
}
|
|
@ -12,9 +12,6 @@ in {
|
|||
|
||||
networking.hostName = "nyx";
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
@ -27,14 +24,6 @@ in {
|
|||
variant = "";
|
||||
};
|
||||
};
|
||||
|
||||
printing.enable = true;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
|
|
Loading…
Reference in a new issue