From 04407ae45f521b52263c71ad5d39c7f72d7b0de7 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 6 Jan 2025 18:39:11 -0800 Subject: [PATCH] feat(nixos): Modularize drivers --- modules/nixos/base/drivers/default.nix | 12 ++++++++++++ systems/x86_64-linux/nyx/default.nix | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 modules/nixos/base/drivers/default.nix diff --git a/modules/nixos/base/drivers/default.nix b/modules/nixos/base/drivers/default.nix new file mode 100644 index 0000000..c7ecba2 --- /dev/null +++ b/modules/nixos/base/drivers/default.nix @@ -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; +} diff --git a/systems/x86_64-linux/nyx/default.nix b/systems/x86_64-linux/nyx/default.nix index bf97525..02609d9 100644 --- a/systems/x86_64-linux/nyx/default.nix +++ b/systems/x86_64-linux/nyx/default.nix @@ -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;