nixos-mod/allCommon: assert networking.hostName != default "nixos"

main
Felix Stupp 2 months ago
parent 7b83ea7530
commit a50038e569
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -31,6 +31,19 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [
(
let
defName = options.networking.hostName.default;
in
{
assertion = config.networking.hostName != defName;
message = "you must define a hostname (different from default: ${defName})";
}
)
];
documentation = { documentation = {
man.mandoc.settings.output = { man.mandoc.settings.output = {

Loading…
Cancel
Save