add hdd spindown and remove endpoints from wireguard configs
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
./modules/static-ip-server.nix
|
||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||
./configuration.nix
|
||||
./modules/hdd-spindown.nix
|
||||
./modules/motd.nix
|
||||
./modules/postgres.nix
|
||||
./modules/fail2ban.nix
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
}
|
||||
];
|
||||
dns = {
|
||||
bind_hosts = [ "127.0.0.1" "192.168.0.6" "192.168.2.1" ];
|
||||
bind_hosts = [ "127.0.0.1" "192.168.0.6" ]; # "192.168.2.1" ];
|
||||
port = 53;
|
||||
protection_enabled = true;
|
||||
filtering_enabled = true;
|
||||
|
||||
7
server/modules/hdd-spindown.nix
Normal file
7
server/modules/hdd-spindown.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ...}:
|
||||
{
|
||||
powerManagement.powerUpCommands = ''
|
||||
${pkgs.hdparm}/sbin/hdparm -B 127 /dev/sd[ab]
|
||||
${pkgs.hdparm}/sbin/hdparm -S 120 /dev/sd[ab]
|
||||
'';
|
||||
}
|
||||
@@ -23,7 +23,6 @@
|
||||
"192.168.2.2/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "192.168.0.6:51820";
|
||||
publicKey = "dUBPIEnAiHIZCMjqV0ya8qotN3UnMhlEVyGNQcR3gVI=";
|
||||
}
|
||||
{
|
||||
@@ -31,7 +30,6 @@
|
||||
"192.168.2.3/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "Eg5ZS3zN05mJ/gct6wJlwVAHTlXpkhxFfUd7yscANV0=";
|
||||
}
|
||||
{
|
||||
@@ -39,7 +37,6 @@
|
||||
"192.168.2.4/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "8Eigfs+k2k2WPaMn+SqDmlSHdMv+I+xcBr/2qhtpGzI=";
|
||||
}
|
||||
{
|
||||
@@ -47,7 +44,6 @@
|
||||
"192.168.2.20/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "25u1RSfjsx3wb1DMeTm0pvUfUkG7zTjGaN+m0w6ZjCw=";
|
||||
}
|
||||
{
|
||||
@@ -55,7 +51,6 @@
|
||||
"192.168.2.21/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "S+8F+yxSQvjjoU44LRYqRv1YulqmOKumUtYo/YIh7X8=";
|
||||
}
|
||||
{
|
||||
@@ -63,7 +58,6 @@
|
||||
"192.168.2.22/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "/dIW7K49vB9HOghFeXvcY7wu2utQltuv6RfgCbxZwlk=";
|
||||
}
|
||||
{
|
||||
@@ -71,7 +65,6 @@
|
||||
"192.168.2.23/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "89rjQXNcyCRUCihqfqcOnctWmhiNR8snpRFF6dyHAmk=";
|
||||
}
|
||||
{
|
||||
@@ -79,7 +72,6 @@
|
||||
"192.168.2.24/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "adaWtboVz3UhpNBKFirs7slbU2+Y3GaV5yS2EoafwVU=";
|
||||
}
|
||||
{
|
||||
@@ -87,7 +79,6 @@
|
||||
"192.168.2.5/32"
|
||||
];
|
||||
persistentKeepalive = 25;
|
||||
endpoint = "kopatz.ddns.net:51820";
|
||||
publicKey = "g5uTlA1IciXgtSbECjhVis0dajRAc53Oa7Hz6dUI+0Q=";
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user