remove commented out config and fix format
parent
005688c212
commit
7b0bd4e789
|
|
@ -19,14 +19,10 @@
|
||||||
|
|
||||||
# Boot
|
# Boot
|
||||||
boot.loader.grub.enable = false;
|
boot.loader.grub.enable = false;
|
||||||
#boot.loader.raspberryPi.enable = true;
|
|
||||||
#boot.loader.raspberryPi.version = 4;
|
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
#boot.loader.generationsDir.enable = true;
|
|
||||||
|
|
||||||
# Kernel configuration
|
# Kernel configuration
|
||||||
boot.kernelPackages = pkgs.linuxPackages_rpi4;
|
boot.kernelPackages = pkgs.linuxPackages_rpi4;
|
||||||
#hardware.deviceTree.kernelPackage = pkgs.linux_rpi4;
|
|
||||||
boot.kernelParams = [ "console=ttyAMA0,115200n8" ];
|
boot.kernelParams = [ "console=ttyAMA0,115200n8" ];
|
||||||
|
|
||||||
# Enable additional firmware (such as Wi-Fi drivers).
|
# Enable additional firmware (such as Wi-Fi drivers).
|
||||||
|
|
@ -40,19 +36,6 @@
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
networking.interfaces.eth0.useDHCP = true;
|
||||||
|
|
||||||
# simple wireguard vpn
|
|
||||||
#networking.wireguard.interfaces.wg0 = {
|
|
||||||
# ips = [ "10.0.69.1/24" ];
|
|
||||||
# privateKey = "EEMw16rqdUCLwuhSlGYINXwUGo+kj88EBTBjl/6QwFU=";
|
|
||||||
# listenPort = 51666;
|
|
||||||
# peers = [
|
|
||||||
# {
|
|
||||||
# allowedIPs = [ "10.0.69.0/24" ];
|
|
||||||
# publicKey = "uFNoJWwVEWHMn7FRrxQm//pDXsKXLyIA4x3y6Q9+wlY=";
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
#};
|
|
||||||
|
|
||||||
security.acme.email = "webmaster@bib3.de";
|
security.acme.email = "webmaster@bib3.de";
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
|
|
||||||
|
|
@ -63,10 +46,6 @@
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
networking.firewall.allowPing = false;
|
networking.firewall.allowPing = false;
|
||||||
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 51666 ]; # Wireguard
|
|
||||||
networking.firewall.extraCommands = ''
|
|
||||||
iptables -A INPUT -p tcp -s 95.90.117.138 -j ACCEPT
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.loooph = {
|
users.users.loooph = {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ in
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
# nginx would warn otherwise
|
# nginx would warn otherwise
|
||||||
mapHashBucketSize = 64;
|
mapHashBucketSize = 64;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
@ -20,11 +20,10 @@ in
|
||||||
root = "/var/www/default";
|
root = "/var/www/default";
|
||||||
};
|
};
|
||||||
|
|
||||||
"www.${fqdn}" = {
|
"www.${fqdn}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
#globalRedirect = "${fqdn}";
|
|
||||||
root = "/var/www/default";
|
root = "/var/www/default";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,6 @@
|
||||||
|
|
||||||
services.openldap = {
|
services.openldap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#database = "mdb";
|
|
||||||
#dataDir = "/var/lib/openldap";
|
|
||||||
#rootpwFile = "/etc/nixos/secret/openldaproot.pw";
|
|
||||||
#suffix = "o=bib3,c=DE";
|
|
||||||
#rootdn = "cn=admin,o=bib3,c=DE";
|
|
||||||
settings = {
|
settings = {
|
||||||
children = {
|
children = {
|
||||||
"cn=schema".includes = [
|
"cn=schema".includes = [
|
||||||
|
|
|
||||||
9
sd.nix
9
sd.nix
|
|
@ -10,7 +10,7 @@ in
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
# nginx would warn otherwise
|
# nginx would warn otherwise
|
||||||
mapHashBucketSize = 64;
|
mapHashBucketSize = 64;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
@ -20,11 +20,10 @@ in
|
||||||
root = "/var/www/schwulesding";
|
root = "/var/www/schwulesding";
|
||||||
};
|
};
|
||||||
|
|
||||||
"www.${fqdn}" = {
|
"www.${fqdn}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
#globalRedirect = "${fqdn}";
|
|
||||||
root = "/var/www/schwulesding";
|
root = "/var/www/schwulesding";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue