Squash merge sops-nix into main

This commit is contained in:
DACHXY 2025-04-22 13:20:41 +08:00
parent 135df24a36
commit 21fc0ee318
15 changed files with 180 additions and 17 deletions

View file

@ -1,14 +1,12 @@
{
config,
...
}:
let
configPath = "/etc/wireguard/wg0.conf";
in
{
networking = {
firewall = {
allowedUDPPorts = [ 51820 ];
};
wg-quick.interfaces.wg0.configFile = configPath;
wg-quick.interfaces.wg0.configFile = config.sops.secrets."wireguard/conf".path;
};
}