nixos/nixos-init: conflict with postBootCommands and powerUpCommands
This commit is contained in:
@@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user