diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-11-30 20:57:58 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-11-30 21:33:25 +0100 |
| commit | 2509fc079888821468d56dd7de37c9bf5354416d (patch) | |
| tree | 27094d1b8b0797dff16ad05699e68c51328b38c0 /config/hardware/default.nix | |
| parent | 1a41c78dad5db8137ebba82b29de49c473fd2f7a (diff) | |
nixos 25.05 -> 25.11
- services.logind options renamed
Flake lock file updates:
• Updated input 'my-nixpkgs':
'github:qaristote/my-nixpkgs/30117aa8b7d69213d6ab0afbb9f73b905968937d' (2025-10-18)
→ 'github:qaristote/my-nixpkgs/e6d25dc678fa289ba488907e3cd49f2f8c330680' (2025-11-30)
• Updated input 'my-nixpkgs/flake-parts':
'github:hercules-ci/flake-parts/4524271976b625a4a605beefd893f270620fd751' (2025-09-01)
→ 'github:hercules-ci/flake-parts/52a2caecc898d0b46b2b905f058ccc5081f842da' (2025-11-12)
• Updated input 'my-nixpkgs/flake-parts/nixpkgs-lib':
'github:nix-community/nixpkgs.lib/a73b9c743612e4244d865a2fdee11865283c04e6' (2025-08-10)
→ 'github:nix-community/nixpkgs.lib/719359f4562934ae99f5443f20aa06c2ffff91fc' (2025-10-29)
• Updated input 'my-nixpkgs/nixpkgs':
'github:NixOS/nixpkgs/e9f00bd893984bc8ce46c895c3bf7cac95331127' (2025-09-28)
→ 'github:NixOS/nixpkgs/6f374686605df381de8541c072038472a5ea2e2d' (2025-11-18)
• Updated input 'my-nixpkgs/nur':
'github:nix-community/NUR/234a8ff556a8995692152f1b0a7d1ee89096ad54' (2025-09-28)
→ 'github:nix-community/NUR/05225766ee3843d0720554ab1c930606092c24c5' (2025-11-19)
• Updated input 'my-nixpkgs/nur/nixpkgs':
'github:nixos/nixpkgs/e643668fd71b949c53f8626614b21ff71a07379d' (2025-09-24)
→ 'github:nixos/nixpkgs/89c2b2330e733d6cdb5eae7b899326930c2c0648' (2025-11-17)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/d6645c340ef7d821602fd2cd199e8d1eed10afbc' (2025-10-20)
→ 'github:NixOS/nixos-hardware/9154f4569b6cdfd3c595851a6ba51bfaa472d9f3' (2025-11-29)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/c8aa8cc00a5cb57fada0851a038d35c08a36a2bb' (2025-10-22)
→ 'github:NixOS/nixpkgs/d542db745310b6929708d9abea513f3ff19b1341' (2025-11-30)
Diffstat (limited to 'config/hardware/default.nix')
| -rw-r--r-- | config/hardware/default.nix | 21 |
1 files changed, 11 insertions, 10 deletions
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" ]; }; }; } |
