diff --git a/hosts/jupiter/hardware-configuration.nix b/hosts/jupiter/hardware-configuration.nix index d303aca..e81b9ba 100644 --- a/hosts/jupiter/hardware-configuration.nix +++ b/hosts/jupiter/hardware-configuration.nix @@ -224,30 +224,39 @@ swapDevices = [{device = "/swap/swapfile";}]; - systemd.network = { - enable = true; - networks = { - "10-lan" = { - matchConfig.Name = "ens18"; - ntp = ["192.168.2.1"]; - domains = ["home.opel-online.de"]; - networkConfig = { - DHCP = "yes"; - IPv6AcceptRA = true; - IPv6PrivacyExtensions = false; - }; - ipv6AcceptRAConfig = { - DHCPv6Client = "always"; - UseDNS = true; - }; - dhcpV4Config = { - UseDNS = true; - }; - dhcpV6Config = { - UseDNS = true; + systemd = { + network = { + enable = true; + networks = { + "10-lan" = { + matchConfig.Name = "ens18"; + ntp = ["192.168.2.1"]; + domains = ["home.opel-online.de"]; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = true; + IPv6PrivacyExtensions = false; + }; + ipv6AcceptRAConfig = { + DHCPv6Client = "always"; + UseDNS = true; + }; + dhcpV4Config = { + UseDNS = true; + }; + dhcpV6Config = { + UseDNS = true; + }; }; }; }; + #services.setspindown = { + # serviceConfig.Type = "oneshot"; + # description = "Sets the spind down time for HDD to 12min+30sec"; + # enable = true; + # wantedBy = [ "multi-user.target" ]; + # script = "${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088"; + #}; }; networking = { hostName = "jupiter"; @@ -264,9 +273,6 @@ powerManagement = { cpuFreqGovernor = lib.mkDefault "powersave"; powertop.enable = true; - #scsiLinkPolicy = "med_power_with_dipm"; - #powerUpCommands = '' - # ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088 #''; }; } diff --git a/hosts/nasbackup/hardware-configuration.nix b/hosts/nasbackup/hardware-configuration.nix index 8195a36..a0086cc 100644 --- a/hosts/nasbackup/hardware-configuration.nix +++ b/hosts/nasbackup/hardware-configuration.nix @@ -198,19 +198,28 @@ swapDevices = [{device = "/swap/swapfile";}]; - systemd.network = { - enable = true; - networks = { - "10-lan" = { - matchConfig.Name = "ens18"; - ntp = ["192.168.2.1"]; - domains = ["home.opel-online.de"]; - networkConfig = { - DHCP = "yes"; - IPv6AcceptRA = true; + systemd = { + network = { + enable = true; + networks = { + "10-lan" = { + matchConfig.Name = "ens18"; + ntp = ["192.168.2.1"]; + domains = ["home.opel-online.de"]; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = true; + }; }; }; }; + # services.setspindown = { + # serviceConfig.Type = "oneshot"; + # description = "Sets the spind down time for HDD to 30min"; + # enable = true; + # wantedBy = [ "multi-user.target" ]; + # script = "${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2"; + # }; }; networking = { hostName = "nasbak"; @@ -227,9 +236,5 @@ powerManagement = { cpuFreqGovernor = lib.mkDefault "powersave"; powertop.enable = true; - # powerUpCommands = '' - # ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088 - # ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2 - # ''; }; }