diff --git a/hosts/ds9/default.nix b/hosts/ds9/default.nix index e801234e..76143050 100644 --- a/hosts/ds9/default.nix +++ b/hosts/ds9/default.nix @@ -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 = [ diff --git a/hosts/ds9/hardware-configuration.nix b/hosts/ds9/hardware-configuration.nix index 93dc9b3b..89b544be 100644 --- a/hosts/ds9/hardware-configuration.nix +++ b/hosts/ds9/hardware-configuration.nix @@ -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";