aboutsummaryrefslogtreecommitdiff
path: root/nixos/alpha/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/alpha/configuration.nix')
-rw-r--r--nixos/alpha/configuration.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index d5912d9..d15baec 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -64,6 +64,33 @@
networking.useDHCP = false;
networking.firewall.enable = true;
+ sops.secrets.mullvad-private-key = { };
+ sops.secrets.mullvad-ipv4-address = { };
+ sops.secrets.mullvad-ipv6-address = { };
+
+ networking.networkmanager.nm-mullvad = {
+ enable = true;
+
+ listenPort = 51820;
+ openFirewall = true;
+
+ autoConnect = {
+ enable = true;
+ profile = "jp-tyo-wg-001";
+ };
+
+ availableServers = [
+ "jp-tyo-wg-001"
+ "jp-osa-wg-002"
+ "se-mma-wg-001"
+ "se-sto-wg-002"
+ ];
+
+ privateKeyPath = config.sops.secrets.mullvad-private-key.path;
+ ipv4AddressPath = config.sops.secrets.mullvad-ipv4-address.path;
+ ipv6AddressPath = config.sops.secrets.mullvad-ipv6-address.path;
+ };
+
programs.nm-applet.enable = true;
i18n.defaultLocale = "en_US.UTF-8";