From c6c952476152a597b971bddcf7b933eb32b4c799 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 29 Apr 2024 23:36:17 +0200 Subject: [PATCH] reorder --- hosts/default/configuration.nix | 36 ++++++++++++++------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 6286d86..913620f 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -14,33 +14,33 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; # LOVE me some blob hardware.enableRedistributableFirmware = true; hardware.enableAllFirmware = true; + services.xserver.videoDrivers = [ "nvidia" ]; + boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; + hardware.nvidia = { + modesetting.enable = true; + powerManagement = { + enable = true; + finegrained = false; + }; + open = false; + nvidiaSettings = true; + }; hardware.opengl = { enable = true; driSupport = false; package = config.hardware.nvidia.package; }; - services.xserver.videoDrivers = [ "nvidia" ]; - - hardware.nvidia = { - modesetting.enable = true; - - # NOTE change this if borked - powerManagement = { - enable = false; - finegrained = false; - }; - - open = false; - - nvidiaSettings = true; + # Allow unfree packages + nixpkgs.config = { + allowUnfree = true; + nvidia.acceptLicense = true; }; networking = { @@ -141,12 +141,6 @@ }; }; - # Allow unfree packages - nixpkgs.config = { - allowUnfree = true; - nvidia.acceptLicense = true; - }; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [