pinwheel: Add development module for ppp.pm-site
This commit is contained in:
@@ -97,6 +97,7 @@
|
|||||||
podman.enable = false;
|
podman.enable = false;
|
||||||
vm.enable = true;
|
vm.enable = true;
|
||||||
scripts.enable = true;
|
scripts.enable = true;
|
||||||
|
pppdotpm-site.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|||||||
22
hosts/pinwheel/modules/ppp.pm-site/default.nix
Normal file
22
hosts/pinwheel/modules/ppp.pm-site/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user