ds9: spin down hdds without use
This commit is contained in:
parent
ea320ce789
commit
1d4aea0e8e
2 changed files with 8 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue