pinwheel: Add development module for ppp.pm-site

This commit is contained in:
Alexander Heldt
2023-11-14 09:05:02 +01:00
parent 46d71fbd74
commit 45e4c32dca
2 changed files with 23 additions and 0 deletions

View File

@@ -97,6 +97,7 @@
podman.enable = false;
vm.enable = true;
scripts.enable = true;
pppdotpm-site.enable = false;
};
# This value determines the NixOS release from which the default

View File

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