summaryrefslogtreecommitdiff
path: root/hosts/glados/boot.nix
blob: 13cc84e3d47b9c15febb490ed2312b7751f987ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
	config,
	lib,
	pkgs,
	...
}: {
	environment.systemPackages = with pkgs; [
		sbctl
	];

	boot = {
		kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
		kernelParams = ["nohibernate"];

		loader = {
			systemd-boot = {
				enable = lib.mkForce false;
			};
			efi.canTouchEfiVariables = true;
		};
		lanzaboote = {
			enable = true;
			pkiBundle = "/etc/secureboot";
		};

		supportedFilesystems = ["zfs"];
	};
}