modules/programs: fix sandbox.net = "vpn" option

This commit is contained in:
2024-07-19 12:43:36 +00:00
parent 8e6272bafd
commit db292850b0

View File

@@ -43,7 +43,7 @@ let
makeSandboxed = pkgs.callPackage ./make-sandboxed.nix { }; makeSandboxed = pkgs.callPackage ./make-sandboxed.nix { };
vpn = if sandbox.net == "vpn" then vpn = if sandbox.net == "vpn" then
lib.findSingle (v: v.default) null null (builtins.attrValues config.sane.vpn) lib.findSingle (v: v.isDefault) null null (builtins.attrValues config.sane.vpn)
else if sandbox.net == "vpn.wg-home" then else if sandbox.net == "vpn.wg-home" then
config.sane.vpn.wg-home config.sane.vpn.wg-home
else else