sops nix configured

This commit is contained in:
bogale 2026-10-24 17:18:06 +09:00
commit db022df80b
9 changed files with 143 additions and 27 deletions

View file

@ -6,6 +6,13 @@
enable = true;
settings.PasswordAuthentication = false;
};
sops = {
secrets.awg1-spec = {};
templates.awg1-conf.content = ''
${config.sops.placeholder.awg-obf}
${config.sops.placeholder.awg1-spec}
'';
};
systemd.tmpfiles.rules = [
"d /root/backup/server"
"L /root/backup/server/http - - - - /srv/http"
@ -32,8 +39,8 @@
allowedTCPPorts = [ 25 80 443 465 993 ];
};
wg-quick.interfaces.awg0 = {
configFile = "/secrets/awg/1.conf";
address = [ "10.0.0.2/32" "fc00::2/128" ];
configFile = config.sops.templates.awg1-conf.path;
};
networkmanager.ensureProfiles.profiles.home-wifi = {
wifi.ssid = "bogale_2.4";