cluster/simulacrum/nowhere: make optional
This commit is contained in:
parent
d784ee0a86
commit
c0d21f6b86
2 changed files with 38 additions and 35 deletions
|
@ -58,6 +58,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
./options.nix
|
./options.nix
|
||||||
];
|
];
|
||||||
|
config = lib.mkIf config.nowhere.enable {
|
||||||
defaults = {
|
defaults = {
|
||||||
networking.hosts."${getNodeAddr "nowhere"}" = lib.attrNames config.nowhere.names;
|
networking.hosts."${getNodeAddr "nowhere"}" = lib.attrNames config.nowhere.names;
|
||||||
security.pki.certificateFiles = [
|
security.pki.certificateFiles = [
|
||||||
|
@ -98,4 +99,5 @@ in
|
||||||
}) lift.nowhere.names;
|
}) lift.nowhere.names;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
options.nowhere = {
|
options.nowhere = {
|
||||||
|
enable = lib.mkEnableOption "Nowhere";
|
||||||
names = lib.mkOption {
|
names = lib.mkOption {
|
||||||
description = "Hostnames that point Nowhere.";
|
description = "Hostnames that point Nowhere.";
|
||||||
type = with lib.types; attrsOf str;
|
type = with lib.types; attrsOf str;
|
||||||
|
|
Loading…
Reference in a new issue