diff --git a/hosts/d2nix/nixos/configuration.nix b/hosts/d2nix/nixos/configuration.nix index 4972111..3d8209a 100644 --- a/hosts/d2nix/nixos/configuration.nix +++ b/hosts/d2nix/nixos/configuration.nix @@ -13,6 +13,7 @@ ./network.nix modules/common.nix modules/smtp.nix + modules/powermanagement.nix ]; @@ -105,7 +106,7 @@ ]; environment.variables.EDITOR = "nvim"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + location = { provider = "manual"; latitude = 47.77; diff --git a/modules/powermanagement.nix b/modules/powermanagement.nix new file mode 100644 index 0000000..9e5f459 --- /dev/null +++ b/modules/powermanagement.nix @@ -0,0 +1,9 @@ +{ pkgs, config, lib, ... }: { + + powerManagement = { + enable = true; + powertop.enable = true; + cpuFreqGovernor = "powersave"; + }; + +}