summaryrefslogtreecommitdiff
path: root/hosts/glados/boot.nix
blob: 6ff35ba317030b80d80b351e04b5b33056ea018a (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
{
  lib,
  pkgs,
  nixpkgsStable,
  ...
}: let
  pinned-kernel = import nixpkgsStable {
    system = "x86_64-linux";
    config.allowUnfree = true;
  };
in {
  environment.systemPackages = with pkgs; [
    sbctl
  ];

  boot = {
    kernelPackages = pinned-kernel.pkgs.linuxPackages_6_1;

    bootspec.enable = true;
    loader.systemd-boot.enable = lib.mkForce false;

    lanzaboote = {
      enable = true;
      pkiBundle = "/etc/secureboot";
    };
    supportedFilesystems = ["btrfs" "ntfs"];
  };
}