diff --git a/hosts/talos/configuration.nix b/hosts/talos/configuration.nix index 0e75fee..a38ef9f 100644 --- a/hosts/talos/configuration.nix +++ b/hosts/talos/configuration.nix @@ -1,4 +1,5 @@ { + config, pkgs, lib, name, @@ -16,6 +17,26 @@ services.thermald.enable = true; + nixpkgs.config.allowUnfreePredicate = + pkg: + builtins.elem (lib.getName pkg) ([ + "nvidia-x11" + "nvidia-settings" + ]); + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = true; + nvidiaSettings = true; + }; + hardware.nvidia.prime = { + sync.enable = true; + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + fonts.fontconfig.enable = true; fonts.fontconfig.defaultFonts = { monospace = [