WIP: Infini-RASPBERRY: improve config
This commit is contained in:
parent
c50c9710f0
commit
a2adaa5182
3 changed files with 75 additions and 68 deletions
|
@ -14,13 +14,14 @@ in
|
|||
efiSysMountPoint = mkOpt path "/boot/efi";
|
||||
};
|
||||
systemd-boot.enable = mkBoolOpt false;
|
||||
ignore = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = (count (v: v) [ cfg.grub.enable cfg.systemd-boot.enable config.wsl.enable ]) == 1;
|
||||
assertion = (count (v: v) [ cfg.grub.enable cfg.systemd-boot.enable config.wsl.enable cfg.ignore ]) == 1;
|
||||
message = "Must enable one and only one bootloader";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue