dotfiles-nix/nix/programs/wireguard/default.nix
2025-02-01 21:53:39 -05:00

22 lines
561 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
wireguard-tools
];
networking.wg-quick.interfaces = {
#freyanet = {
# address = [ "10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128" ];
# dns = [ "10.2.2.2" ];
# privateKeyFile = config.sops.secrets.freyanetWg.path;
# peers = [{
# publicKey = "x0ykwakpYCvI/pG+nR83lNUyeOE9m54thnX3bvZ+FUk=";
# allowedIPs = [ "10.0.0.0/12" "fd:cafe::/32" ];
# endpoint = "freya.cat:41111";
# persistentKeepalive = 25;
# }];
#};
};
}