add hdparm um energie zu sparen indem die festplatten immer aus gehen
This commit is contained in:
1 parent
b3e619d5d8
commit
aa73a4dd1c
1 file changed
+17
-2
+17
-2
@@ -1,10 +1,10 @@
|
|||||||
{ config, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
systemd.services.zfs-mount.enable = false;
|
systemd.services.zfs-mount.enable = false;
|
||||||
|
|
||||||
networking.hostId = "07019099";
|
networking.hostId = "07019099";
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
boot.zfs.devNodes = "/dev/disk/by-id/ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N7LL2J1S-part1"; #oder mit -part1 am ende
|
boot.zfs.devNodes = "/dev/disk/by-id/ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N7LL2J1S-part1";
|
||||||
|
|
||||||
fileSystems."/bfds-nix" =
|
fileSystems."/bfds-nix" =
|
||||||
{ device = "bfds-nix";
|
{ device = "bfds-nix";
|
||||||
@@ -40,4 +40,19 @@
|
|||||||
{ device = "bfds-nix/ebooks";
|
{ device = "bfds-nix/ebooks";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.hdparm = {
|
||||||
|
description = "Set hdparm energy settings at boot";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = ''
|
||||||
|
/run/current-system/sw/bin/hdparm -B 72 /dev/sda
|
||||||
|
/run/current-system/sw/bin/hdparm -B 72 /dev/sdb
|
||||||
|
/run/current-system/sw/bin/hdparm -B 72 /dev/sdc
|
||||||
|
'';
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user