configured noctalia

This commit is contained in:
bogale 2026-10-10 16:34:47 +09:00
commit 530c67601a
10 changed files with 312 additions and 112 deletions

View file

@ -26,6 +26,23 @@
reloadServices = [ "nginx.service" "dovecot.service" "postfix.service" ];
};
};
networking = {
hostName = "nixos-server";
firewall = {
allowedUDPPorts = [ 443 ];
allowedTCPPorts = [ 25 80 443 465 993 ];
};
wg-quick.interfaces.awg0 = {
configFile = "/secrets/awg/1.conf";
address = [ "10.0.0.2/32" "fc00::2/128" ];
};
networkmanager.ensureProfiles.profiles.wifi = {
wifi.ssid = "bogale_2.4";
ipv6.addresses = "fc01::2/64";
ipv4.addresses = "10.1.0.2/16";
wifi-security.psk = "$BOGALE_2_4_PSK";
};
};
users = {
groups = {
php.gid = 1568;
@ -33,7 +50,7 @@
};
users = {
nginx.extraGroups = [ "php" "acme" ];
root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+wc+3rahpNa+OMS9gaWgMQIxXIKHy4Beku5LBDt+Ow" ];
root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTb4c1ISQSV34GN27GgaJ08jpiRM3Wul/iSWjQ6emTq" ];
php = {
uid = 1568;
group = "php";
@ -46,21 +63,4 @@
};
};
};
networking = {
hostName = "nixos-server";
firewall = {
allowedUDPPorts = [ 443 ];
allowedTCPPorts = [ 25 80 443 465 993 ];
};
wg-quick.interfaces.awg0 = {
configFile = "/secrets/awg/1.conf";
address = [ "fc00::2/128" "10.0.0.2/32" ];
};
networkmanager.ensureProfiles.profiles.wifi = {
wifi.ssid = "bogale_2.4";
ipv6.addresses = "fc01::2/64";
ipv4.addresses = "10.1.0.2/16";
wifi-security.psk = "$BOGALE_2_4_PSK";
};
};
}