chore: run lint & format

This commit is contained in:
2026-04-13 23:04:16 +02:00
parent df2ee459a1
commit 2204b12fad
22 changed files with 496 additions and 389 deletions

View File

@@ -1,6 +1,11 @@
{
nixos =
{ config, lib, inputs, ... }:
{
config,
lib,
inputs,
...
}:
let
cfg = config.features.bootloader;
in
@@ -19,22 +24,24 @@
};
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
boot.loader.efi.canTouchEfiVariables = true;
}
config = lib.mkIf cfg.enable (
lib.mkMerge [
{
boot.loader.efi.canTouchEfiVariables = true;
}
(lib.mkIf (cfg.mode == "systemd-boot") {
boot.loader.systemd-boot.enable = true;
})
(lib.mkIf (cfg.mode == "systemd-boot") {
boot.loader.systemd-boot.enable = true;
})
(lib.mkIf (cfg.mode == "lanzaboote") {
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
})
]);
(lib.mkIf (cfg.mode == "lanzaboote") {
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
})
]
);
};
}