pinwheel/test-vm: Move development of ppp.pm-site to test-vm

This commit is contained in:
Alexander Heldt
2024-07-30 20:09:12 +02:00
parent 750dd941b9
commit 574673c7c9
3 changed files with 21 additions and 4 deletions

View File

@@ -40,7 +40,6 @@ in
};
vm.enable = true;
scripts.enable = true;
pppdotpm-site.enable = false;
};
};
}

View File

@@ -1,22 +0,0 @@
{ inputs, lib, config, ... }:
let
enabled = config.mod.pppdotpm-site.enable;
in
{
imports = [ inputs.pppdotpm-site.nixosModules.default ];
options = {
mod.pppdotpm-site = {
enable = lib.mkEnableOption "enable ppp.pm site";
};
};
config = lib.mkIf enabled {
services.pppdotpm-site = {
enable = true;
domain = "ppp.pm.local";
};
networking.extraHosts = "127.0.0.1 ppp.pm.local";
};
}