change networking config

This commit is contained in:
goeranh 2025-05-23 16:50:42 +02:00
parent bf20467381
commit 54e5173b69
No known key found for this signature in database

View file

@ -14,20 +14,31 @@
value = "8192"; value = "8192";
}]; }];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "administration" ];
nix.settings.download-buffer-size = 6710886400; nix.settings.download-buffer-size = 6710886400;
boot.loader.grub.enable = true; # boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.efiInstallAsRemovable = true;
networking.hostName = "authentik"; networking.hostName = "authentik";
networking.domain = "test.htw.stura-dresden.de"; networking.domain = "test.htw.stura-dresden.de";
networking.interfaces.ens18.ipv4.addresses = [ networking.interfaces.ens18.ipv4.addresses = [
{ {
address = "141.56.51.18"; address = "167.235.225.23";
prefixLength = 24; prefixLength = 32;
} }
]; ];
networking.defaultGateway.address = "141.56.51.254";
networking.nameservers = [ "141.56.1.1" "141.56.1.2" ]; networking.interfaces.ens18.ipv6.addresses = [
{
address = "2a01:4f8:c012:6bd7::1";
prefixLength = 32;
}
];
networking.defaultGateway.address = "172.31.1.1";
networking.nameservers = [ "9.9.9.9" "1.1.1.1" ];
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@ -40,7 +51,8 @@
users.users.administration = { users.users.administration = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "docker" ]; # Enable sudo for the user. initialPassword = "test";
extraGroups = [ "wheel" ]; # Enable sudo for the user.
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINABEf0jBjtDdezDDtvl1v27l0DbHP2XUgMARTZXC+MR goeranh@node5" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINABEf0jBjtDdezDDtvl1v27l0DbHP2XUgMARTZXC+MR goeranh@node5"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmYHNdtPmQqvNINEWJgqEojrye+wQKr0S0VwlGv7xUa goeranh@node7" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmYHNdtPmQqvNINEWJgqEojrye+wQKr0S0VwlGv7xUa goeranh@node7"
@ -157,7 +169,7 @@
}; };
services.dovecot2.mailLocation = lib.mkForce "maildir:/var/vmail/%n"; services.dovecot2.mailLocation = lib.mkForce "maildir:/var/vmail/%n";
services.postfix.relayHost = "141.56.51.14"; # services.postfix.relayHost = "141.56.51.14";
# virtualisation.docker.enable = true; # virtualisation.docker.enable = true;