Compare commits

...

2 Commits

Author SHA1 Message Date
Alexandre LUCAZEAU d7224bb1de # powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
wermanagement module
2023-07-16 11:39:04 +02:00
Alexandre LUCAZEAU 0606c9dd37 ADD location and redshift 2023-07-16 11:34:33 +02:00
3 changed files with 30 additions and 1 deletions

View File

@ -13,6 +13,7 @@
./network.nix
modules/common.nix
modules/smtp.nix
modules/powermanagement.nix
];
@ -105,6 +106,11 @@
];
environment.variables.EDITOR = "nvim";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
location = {
provider = "manual";
latitude = 47.77;
longitude = -1.164;
};
}

View File

@ -17,6 +17,20 @@
interval = "hourly";
localuser = null;
};
redshift = {
enable = true;
brightness = {
# Note the string values below.
day = "1";
night = "1";
};
temperature = {
day = 5500;
night = 3700;
};
};
geoclue2.appConfig.redshift.isAllowed = true;
automatic-timezoned.enable = true;
xserver = {
enable = true;
autorun = true;

View File

@ -0,0 +1,9 @@
{ pkgs, config, lib, ... }: {
powerManagement = {
enable = true;
powertop.enable = true;
cpuFreqGovernor = "powersave";
};
}