diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index cd6e693..3d5b4c7 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -19,6 +19,28 @@ hardware.enableRedistributableFirmware = true; hardware.enableAllFirmware = true; + + hardware.opengl = { + enable = true; + driSupport = true; + }; + + services.xserver.videoDrivers = [ "nvidia" ]; + + hardware.nvidia = { + modesetting.enable = true; + + # NOTE change this if borked + powerManagement = { + enable = false; + finegrained = false; + }; + + open = true; + + nvidiaSettings = true; + }; + networking = { hostName = "lambdaOS"; # Define your hostname. extraHosts = '' diff --git a/hosts/default/hardware-configuration.nix b/hosts/default/hardware-configuration.nix index c219d06..17ffb75 100644 --- a/hosts/default/hardware-configuration.nix +++ b/hosts/default/hardware-configuration.nix @@ -34,27 +34,4 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - hardware.opengl = { - enable = true; - driSupport = true; - }; - - services.xserver.videoDrivers = [ "nvidia" ]; - - hardware.nvidia = { - modesetting.enable = true; - - # NOTE change this if borked - powerManagement = { - enable = false; - finegrained = false; - }; - - open = false; - - nvidiaSettings = true; - - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; }