diff --git a/hosts/nixos-laptop/nixos/configuration.nix b/hosts/nixos-laptop/nixos/configuration.nix index 065e8011..42ff1187 100644 --- a/hosts/nixos-laptop/nixos/configuration.nix +++ b/hosts/nixos-laptop/nixos/configuration.nix @@ -8,6 +8,21 @@ ../../../modules/powertop.nix ]; + # Set and enable TLP + services.tlp = { + enable = true; + }; + programs.gamemode = { + enable = true; + settings = { + nv_powermizer_mode = 1; + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; + }; + }; + }; + # Set your time zone. time.timeZone = "Asia/Tokyo"; @@ -42,8 +57,8 @@ dynamicBoost.enable = true; nvidiaPersistenced = false; package = config.boot.kernelPackages.nvidiaPackages.stable; - powerManagement.finegrained = false; - powerManagement.enable = false; + powerManagement.finegrained = true; + powerManagement.enable = true; nvidiaSettings = true; modesetting.enable = true; prime = {