diff --git a/hosts/tkaronto/default.nix b/hosts/tkaronto/default.nix index ed76dcb..bbaaf2b 100644 --- a/hosts/tkaronto/default.nix +++ b/hosts/tkaronto/default.nix @@ -77,7 +77,7 @@ in algorithm = "zstd"; }; - nix.settings.max-jobs = lib.mkDefault 8; + nix.settings.max-jobs = lib.mkForce 16; security = { pam.loginLimits = [ { @@ -108,7 +108,12 @@ in alsa.support32Bit = true; pulse.enable = true; }; + services.xserver.videoDrivers = ["nvidia" "amdgpu"]; hardware = { + nvidia.prime = { + amdgpuBusId = "PCI:5:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; opengl = { driSupport = true; driSupport32Bit = true; @@ -132,6 +137,8 @@ in support32Bit = true; }; }; + + programs.light.enable = true; fonts = { enableDefaultFonts = true; diff --git a/users/patriot/default.nix b/users/patriot/default.nix index 97bbb72..c3c8565 100644 --- a/users/patriot/default.nix +++ b/users/patriot/default.nix @@ -25,6 +25,7 @@ in { "wheel" "adbusers" "dialout" + "video" ]; shell = pkgs.zsh; hashedPassword = "$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/"; @@ -176,6 +177,8 @@ in { cloudflared lutris discord-open-asar + gamescope + protontricks ]; shellAliases = nixosConfig.environment.shellAliases