diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 00:15:19 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 00:18:00 +0200 |
| commit | b306b81766e11701ac1f04f125a363bbec4863bd (patch) | |
| tree | 51cf37a5f5c5c9587fbf8c2db53e27bdb988d8bd /config/hardware/default.nix | |
| parent | 3d701dd6e53a4215712784ae34b4c6dbbc8e3226 (diff) | |
| download | hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.gz hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.bz2 hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.xz | |
Diffstat (limited to 'config/hardware/default.nix')
| -rw-r--r-- | config/hardware/default.nix | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/config/hardware/default.nix b/config/hardware/default.nix index 292d94c..cfcd1ab 100644 --- a/config/hardware/default.nix +++ b/config/hardware/default.nix @@ -1,13 +1,7 @@ { nixos-hardware, - pkgs, ... }: -let - # usage: - # blankscreen {force, poke} - blankscreen = "setterm -term linux -blank </dev/tty1"; -in { imports = [ # Include the results of the hardware scan. @@ -21,28 +15,9 @@ in personal.hardware = { usb.enable = false; - disks.crypted = "/dev/disk/by-uuid/29fa7cc7-e8ca-4f9f-bd3d-46475ede48e2"; + disks.crypted = "/dev/disk/by-uuid/c02cc407-a55f-41d3-96f7-37c7013c51a7"; firmwareNonFree.enable = true; keyboard.keyMap = "fr"; sound.enable = false; }; - - environment.shellAliases = { inherit blankscreen; }; - systemd = { - suppressedSystemUnits = [ "systemd-backlight@.service" ]; - services.blankscreen = { - description = "Shut down screen"; - path = [ pkgs.util-linux ]; - script = '' - ${blankscreen} force - ''; - wantedBy = [ "default.target" ]; - after = [ "multi-user.target" ]; - }; - }; - - services.cron = { - enable = true; - systemCronJobs = [ "0 * * * * ping -c 1 192.168.1.1 && blankscreen force || blankscreen poke" ]; - }; } |
