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 | |
| parent | 3d701dd6e53a4215712784ae34b4c6dbbc8e3226 (diff) | |
| download | hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.gz hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.bz2 hephaistos-b306b81766e11701ac1f04f125a363bbec4863bd.tar.xz | |
Diffstat (limited to 'config/hardware')
| -rw-r--r-- | config/hardware/default.nix | 27 | ||||
| -rw-r--r-- | config/hardware/hardware-configuration.nix | 4 |
2 files changed, 3 insertions, 28 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" ]; - }; } diff --git a/config/hardware/hardware-configuration.nix b/config/hardware/hardware-configuration.nix index e2287cf..bc205f0 100644 --- a/config/hardware/hardware-configuration.nix +++ b/config/hardware/hardware-configuration.nix @@ -13,10 +13,10 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" + "nvme" "usbhid" "usb_storage" "sd_mod" - "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; @@ -28,7 +28,7 @@ }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/766A-3450"; + device = "/dev/disk/by-uuid/CC58-3E09"; fsType = "vfat"; options = [ "fmask=0022" |
