added web.nix to jeevesjr

This commit is contained in:
Richie Cahill
2024-05-27 20:20:00 -04:00
parent 80bbbc8e9e
commit cabba86d1a
4 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{ 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
'';
}