diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/default.nix | 2 | ||||
| -rw-r--r-- | config/hardware/default.nix | 21 |
2 files changed, 12 insertions, 11 deletions
diff --git a/config/default.nix b/config/default.nix index db94c34..e76dbd6 100644 --- a/config/default.nix +++ b/config/default.nix @@ -20,5 +20,5 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "25.05"; # Did you read the comment? + system.stateVersion = "25.11"; # Did you read the comment? } diff --git a/config/hardware/default.nix b/config/hardware/default.nix index 06555f7..26f503e 100644 --- a/config/hardware/default.nix +++ b/config/hardware/default.nix @@ -7,7 +7,8 @@ # blankscreen {force, poke} let blankscreen = "echo 0 > /sys/class/backlight/intel_backlight/brightness; setterm -term linux -blank </dev/tty1"; -in { +in +{ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix @@ -24,24 +25,24 @@ in { sound.enable = false; }; - services.logind = { + services.logind.settings.Login = { # don't suspend on lid close - lidSwitch = "ignore"; - lidSwitchExternalPower = "ignore"; - lidSwitchDocked = "ignore"; + HandleLidSwitchDocked = "ignore"; + HandleLidSwitchExternalPower = "ignore"; + HandleLidSwitch = "ignore"; }; - environment.shellAliases = {inherit blankscreen;}; + environment.shellAliases = { inherit blankscreen; }; systemd = { - suppressedSystemUnits = ["systemd-backlight@.service"]; + suppressedSystemUnits = [ "systemd-backlight@.service" ]; services.blankscreen = { description = "Shut down screen"; - path = [pkgs.util-linux]; + path = [ pkgs.util-linux ]; script = '' ${blankscreen} force ''; - wantedBy = ["default.target"]; - after = ["multi-user.target"]; + wantedBy = [ "default.target" ]; + after = [ "multi-user.target" ]; }; }; } |
