summary refs log tree commit diff
path: root/modules/work/wireguard.nix
blob: bfcf8dda228bb281563547fd7013d10a8df6b1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, ... }:

{
  age.secrets."wg-gda.conf" = {
    file = ../../secrets/wg-gda.conf.age;
  };

  networking.wg-quick.interfaces."wg-gda" = {
    autostart = false; # no need to start the interface during boot.
    configFile = config.age.secrets."wg-gda.conf".path;
  };
}