dentritic refactor

This commit is contained in:
elwrcl committed 2026-07-30 22:58:52 +03:00
1 parent fc386c4053
commit 301ad158d5
140 files changed
+2285 -2622

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
{ ... }:
{
commonModules.hostname-assert =
{ config, lib, ... }:
{
options.elars.expectedHostName = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
description = "host filename must match networking.hostName.";
};
config.assertions = lib.singleton {
assertion =
config.elars.expectedHostName == null
|| config.networking.hostName == config.elars.expectedHostName;
message = ''
syntax: hostname assertion failed:
expected (filename) : ${toString config.elars.expectedHostName}
real (networking) : ${toString config.networking.hostName}
'';
};
};
}