diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2025-11-25 07:16:48 -0500 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-11-25 07:16:48 -0500 |
| commit | 34a81b72d264acc99972e4a8e77be33e713486c8 (patch) | |
| tree | 6fbf74f3558886d0d04feaf235580fa76ae26e8e /modules | |
| parent | 29e4d76f2169644939495e40ced0404667c50f17 (diff) | |
| download | nix-config-34a81b72d264acc99972e4a8e77be33e713486c8.tar.gz nix-config-34a81b72d264acc99972e4a8e77be33e713486c8.tar.bz2 nix-config-34a81b72d264acc99972e4a8e77be33e713486c8.zip | |
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/desktop/apps/games/freeciv.nix | 24 | ||||
| -rw-r--r-- | modules/desktop/apps/games/lunati.nix (renamed from modules/desktop/apps/games/unciv.nix) | 8 | ||||
| -rw-r--r-- | modules/desktop/apps/games/steam.nix | 5 | ||||
| -rw-r--r-- | modules/desktop/hyprland.nix | 6 | ||||
| -rw-r--r-- | modules/hardware/gpu.nix | 3 |
5 files changed, 11 insertions, 35 deletions
diff --git a/modules/desktop/apps/games/freeciv.nix b/modules/desktop/apps/games/freeciv.nix deleted file mode 100644 index cb5e462..0000000 --- a/modules/desktop/apps/games/freeciv.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - config, - options, - lib, - pkgs, - rootPath, - ... -}: let - freecivConf = config.modules.desktop.apps.games.freeciv; - configDir = config.nixosConfig.configDir; -in { - options.modules.desktop.apps.games.freeciv = { - enable = lib.mkOption { - type = lib.types.bool; - default = false; - }; - }; - - config = lib.mkIf (freecivConf.enable) { - home.packages = with pkgs; [ - (callPackage (rootPath + /packages/freeciv/default.nix) {}) - ]; - }; -} diff --git a/modules/desktop/apps/games/unciv.nix b/modules/desktop/apps/games/lunati.nix index 1eec540..1c06b4f 100644 --- a/modules/desktop/apps/games/unciv.nix +++ b/modules/desktop/apps/games/lunati.nix @@ -6,19 +6,19 @@ rootPath, ... }: let - uncivConf = config.modules.desktop.apps.games.unciv; + luantiConf = config.modules.desktop.apps.games.luanti; configDir = config.nixosConfig.configDir; in { - options.modules.desktop.apps.games.unciv = { + options.modules.desktop.apps.games.luanti = { enable = lib.mkOption { type = lib.types.bool; default = false; }; }; - config = lib.mkIf (uncivConf.enable) { + config = lib.mkIf (luantiConf.enable) { home.packages = with pkgs; [ - (callPackage (rootPath + /packages/unciv/default.nix) {}) + luanti ]; }; } diff --git a/modules/desktop/apps/games/steam.nix b/modules/desktop/apps/games/steam.nix index 50b5c62..51396f1 100644 --- a/modules/desktop/apps/games/steam.nix +++ b/modules/desktop/apps/games/steam.nix @@ -29,6 +29,11 @@ in { remotePlay.openFirewall = true; dedicatedServer.openFirewall = true; gamescopeSession.enable = true; + protontricks.enable = true; }; + + environment.systemPackages = with pkgs; [ + protonup-qt + ]; }; } diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 45ad967..2839b9a 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -197,12 +197,6 @@ in { "__GLX_VENDOR_LIBRARY_NAME,nvidia" "LIBVA_DRIVER_NAME,nvidia" "NVD_BACKEND,direct" - "PROTON_ENABLE_NGX_UPDATER,1" - "__GL_GSYNC_ALLOWED,1" - "__GL_VRR_ALLOWED,1" - "__GL_MaxFramesAllowed,1" - "__NV_PRIME_RENDER_OFFLOAD,1" - "__VK_LAYER_NV_optimus,NIVIDA_only" "WLR_DRM_NO_ATOMIC,1" "WLR_USE_LIBINPUT,1" "WLR_RENDERER_ALLOW_SOFTWARE,1" diff --git a/modules/hardware/gpu.nix b/modules/hardware/gpu.nix index fb333ed..72604a8 100644 --- a/modules/hardware/gpu.nix +++ b/modules/hardware/gpu.nix @@ -42,7 +42,8 @@ in { hardware.nvidia = { modesetting.enable = true; - powerManagement.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; open = true; nvidiaSettings = true; |
