From 94c96d1450e0c8caba672f3ffdad43d2d2e38233 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 25 Oct 2024 14:45:07 +0200 Subject: [PATCH] feat: mullvad on all computers --- config/basic/net.nix | 12 +++++++++++- hosts/desktopnix/net.nix | 6 +----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/config/basic/net.nix b/config/basic/net.nix index a7712c4..eafd560 100644 --- a/config/basic/net.nix +++ b/config/basic/net.nix @@ -1,4 +1,9 @@ -{ lib, config, ... }: +{ + lib, + config, + pkgs, + ... +}: { networking = { useNetworkd = true; @@ -28,4 +33,9 @@ MulticastDNS=true ''; }; + + services.mullvad-vpn = { + enable = true; + package = pkgs.mullvad-vpn; + }; } diff --git a/hosts/desktopnix/net.nix b/hosts/desktopnix/net.nix index 3d4f95a..edca0e6 100644 --- a/hosts/desktopnix/net.nix +++ b/hosts/desktopnix/net.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, ... }: { networking = { inherit (config.secrets.secrets.local.networking) hostId; @@ -23,8 +23,4 @@ }; networking.nftables.firewall.zones.untrusted.interfaces = [ "lan01" ]; wireguard.samba-patrick.client.via = "elisabeth-samba"; - services.mullvad-vpn = { - enable = true; - package = pkgs.mullvad-vpn; - }; }