ds9: spin down hdds without use

This commit is contained in:
Philipp Hochkamp 2023-04-04 21:41:54 +02:00
parent ea320ce789
commit 1d4aea0e8e
2 changed files with 8 additions and 0 deletions

View file

@ -16,6 +16,12 @@ in
# Don't Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
# power save stuffzies
services.udev.path = [ pkgs.hdparm ];
services.udev.extraRules = ''
ACTION=="add|change", KERNEL=="sd[a-z]", ATTRS{queue/rotational}=="1", RUN+="${pkgs.hdparm}/bin/hdparm -S 60 -B 100 /dev/%k"
'';
services.syncthing.enable = true;
services.syncthing.user = "ragon";
@ -234,6 +240,7 @@ in
services.smartd = {
enable = true;
extraOptions = [ "--interval=7200" ];
#notifications.test = true;
};
nixpkgs.overlays = [

View file

@ -27,6 +27,7 @@
services.sanoid.datasets."rpool/content/safe/data/media" = { };
services.sanoid.enable = true;
services.sanoid.interval = "0/8:00:00";
swapDevices = [{ device = "/dev/disk/by-id/nvme-eui.000000000000000100a075202c247839-part1"; randomEncryption = true; }];
fileSystems."/boot".device = "/dev/disk/by-uuid/149F-23AA";