Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
8cafd4863f |
@ -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}''
|
||||
|
@ -18,6 +18,10 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
clan.core.clanPkgs = lib.mkDefault self.packages.${pkgs.hostPlatform.system};
|
||||
clan.core.machine = {
|
||||
id = "bad660856cd348539f74bc7881f4a482";
|
||||
diskId = "c4c47b";
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user