rotuer: make domainName configurable

This commit is contained in:
Daniel Barlow 2024-02-11 15:11:06 +00:00
parent 6684d34a43
commit e6705c4d06

View File

@ -8,7 +8,10 @@
{ config, pkgs, lib, ... } : { config, pkgs, lib, ... } :
let let
secrets = { firewallRules = {}; } // (import ./rotuer-secrets.nix); secrets = {
domainName = "fake.liminix.org";
firewallRules = {};
} // (import ./rotuer-secrets.nix);
inherit (pkgs.liminix.services) oneshot longrun bundle; inherit (pkgs.liminix.services) oneshot longrun bundle;
inherit (pkgs) serviceFns; inherit (pkgs) serviceFns;
svc = config.system.service; svc = config.system.service;
@ -121,7 +124,7 @@ in rec {
# not putting my actual MAC addresses in a public git repo ... # not putting my actual MAC addresses in a public git repo ...
hosts = { } // lib.optionalAttrs (builtins.pathExists ./static-leases.nix) (import ./static-leases.nix); hosts = { } // lib.optionalAttrs (builtins.pathExists ./static-leases.nix) (import ./static-leases.nix);
domain = "fake.liminix.org"; domain = secrets.domainName;
}; };
services.wan = svc.pppoe.build { services.wan = svc.pppoe.build {