Trolli Schmittlauch
9ad1049f4a
Inspired by https://jade.fyi/blog/flakes-arent-real/, this is better for composability: > it also doesn't work outside of the flake that's actually invoking nixpkgs.lib.nixosSystem. The latter is the much more sinister part, and the reason I would strongly recommend inline modules with closures instead of specialArgs: they break flake composition. For now, the `system` remains a specialArg, until I decide what to do with that.
21 lines
486 B
Nix
21 lines
486 B
Nix
{ config, lib, pkgs, ...}:
|
|
{
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# UEFI secure boot
|
|
environment.systemPackages = [
|
|
pkgs.sbctl
|
|
];
|
|
# Lanzaboote currently replaces the systemd-boot module.
|
|
# This setting is usually set to true in configuration.nix
|
|
# generated at installation time. So we force it to false
|
|
# for now.
|
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
|
|
boot.lanzaboote = {
|
|
enable = true;
|
|
pkiBundle = "/etc/secureboot";
|
|
};
|
|
|
|
}
|