removed activationScripts.mkVPN

This commit is contained in:
Richie Cahill 2024-05-27 20:26:30 -04:00
parent cabba86d1a
commit 86ccb18ab4
2 changed files with 0 additions and 20 deletions

View File

@ -1,15 +1,5 @@
{ pkgs, config, ... }:
{
imports = [ ./web.nix ];
virtualisation.oci-containers.backend = "docker";
system.activationScripts.mkVPN =
let
docker = config.virtualisation.oci-containers.backend;
dockerBin = "${pkgs.${docker}}/bin/${docker}";
in
''
${dockerBin} network inspect web >/dev/null 2>&1 || ${dockerBin} network create web --subnet 172.100.5.0/16
'';
}

View File

@ -1,4 +1,3 @@
{ pkgs, config, ... }:
{
imports = [
./filebrowser.nix
@ -7,13 +6,4 @@
];
virtualisation.oci-containers.backend = "docker";
system.activationScripts.mkVPN =
let
docker = config.virtualisation.oci-containers.backend;
dockerBin = "${pkgs.${docker}}/bin/${docker}";
in
''
${dockerBin} network inspect web >/dev/null 2>&1 || ${dockerBin} network create web --subnet 172.100.5.0/16
'';
}