nixos/nixos-init: conflict with postBootCommands and powerUpCommands

This commit is contained in:
Majiir Paktu
2025-12-26 18:24:30 -05:00
parent a117758841
commit e656d186b2
2 changed files with 9 additions and 0 deletions
@@ -34,6 +34,14 @@ in
assertion = config.services.userborn.enable || config.systemd.sysusers.enable;
message = "nixos-init can only be used with services.userborn.enable or systemd.sysusers.enable";
}
{
assertion = config.boot.postBootCommands == "";
message = "nixos-init cannot be used with boot.postBootCommands";
}
{
assertion = config.powerManagement.powerUpCommands == "";
message = "nixos-init cannot be used with powerManagement.powerUpCommands";
}
];
};
}
+1
View File
@@ -11,6 +11,7 @@
boot.initrd.systemd.enable = true;
system.etc.overlay.enable = true;
services.userborn.enable = true;
boot.postBootCommands = lib.mkForce "";
system.nixos-init.enable = true;
# Forcibly set this to only these specific values.