From 5a109c6c90d7fe880aac2555edff9e50479ead2a Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Sat, 12 Oct 2024 13:58:55 +0200 Subject: [PATCH] refactor(Zephyrus): Moved hardware specific config to `hardward-configuration.nix` --- hosts/Zephyrus/default.nix | 17 ----------------- hosts/Zephyrus/hardware-configuration.nix | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/hosts/Zephyrus/default.nix b/hosts/Zephyrus/default.nix index bf8aca1..bcf91d0 100644 --- a/hosts/Zephyrus/default.nix +++ b/hosts/Zephyrus/default.nix @@ -16,25 +16,8 @@ console.keyMap = "fr"; - # Network & Bluetooth - networking.wireless.iwd.enable = true; - - hardware.bluetooth.enable = true; - hardware.bluetooth.powerOnBoot = true; - security.pam.services.swaylock = {}; - # Audio - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - # If you want to use JACK applications, uncomment this - #jack.enable = true; - }; - # Services services.seatd.enable = true; services.blueman.enable = true; diff --git a/hosts/Zephyrus/hardware-configuration.nix b/hosts/Zephyrus/hardware-configuration.nix index c3463cf..d08ef03 100644 --- a/hosts/Zephyrus/hardware-configuration.nix +++ b/hosts/Zephyrus/hardware-configuration.nix @@ -33,6 +33,23 @@ tmp.useTmpfs = true; }; + # Network & Bluetooth + networking.wireless.iwd.enable = true; + + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + + # Audio + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment this + #jack.enable = true; + }; + #NVIDIA nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [