Compare commits

...

1 Commits
main ... main

Author SHA1 Message Date
8cafd4863f clanCore: Make fact generation for machine.id optional 2024-09-06 21:25:41 +02:00
2 changed files with 7 additions and 2 deletions

View File

@ -35,7 +35,7 @@ in
lib.mkDefault
config.clan.core.facts.services."machine_id".public."diskId".value;
clan.core.facts.services."machine_id" = {
clan.core.facts.services."machine_id" = lib.mkIf (cfg.id == null) {
public."machine_id" = { };
public."diskId" = { };
generator.path = [
@ -49,7 +49,8 @@ in
'';
};
networking.hostId = lib.mkIf (cfg.id != null) (lib.mkDefault cfg.idShort);
# TODO: Should we set it by default?
# networking.hostId = lib.mkIf (cfg.id != null) (lib.mkDefault cfg.idShort);
boot.kernelParams = lib.mkIf (cfg.id != null) [
''systemd.machine_id=${cfg.id}''

View File

@ -18,6 +18,10 @@
{ pkgs, lib, ... }:
{
clan.core.clanPkgs = lib.mkDefault self.packages.${pkgs.hostPlatform.system};
clan.core.machine = {
id = "bad660856cd348539f74bc7881f4a482";
diskId = "c4c47b";
};
}
)
];