diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-04-14 19:12:48 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-04-14 19:12:48 +0200 |
| commit | 707919fa830208d2e2bf7fed1317eb8fbd6fbffd (patch) | |
| tree | ed43bb5faa61d904d320bdb9d0b2818b2f1b26c2 /flake.nix | |
| parent | 9e7b286a8224f5c146c3f4286b8c76e992e68f0a (diff) | |
| download | nix-infra-707919fa830208d2e2bf7fed1317eb8fbd6fbffd.tar.gz nix-infra-707919fa830208d2e2bf7fed1317eb8fbd6fbffd.tar.bz2 nix-infra-707919fa830208d2e2bf7fed1317eb8fbd6fbffd.zip | |
snapshot: Mo 14. Apr 19:12:48 CEST 2025
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -6,6 +6,12 @@ flake-utils = { url = "github:numtide/flake-utils"; }; + lanzaboote = { + url = "github:nix-community/lanzaboote/v0.4.2"; + + # Optional but recommended to limit the size of your system closure. + inputs.nixpkgs.follows = "nixpkgs"; + }; disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; @@ -15,6 +21,7 @@ inputs@{ self, nixpkgs, + lanzaboote, flake-utils, ... }: @@ -23,7 +30,23 @@ nixosConfigurations = { hadante = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - modules = [ ./srv/hadante/configuration.nix ]; + modules = [ + ./srv/hadante/configuration.nix + lanzaboote.nixosModules.lanzaboote + ( + { pkgs, lib, ... }: + { + environment.systemPackages = [ + pkgs.sbctl + ]; + boot.loader.systemd-boot.enable = lib.mkForce false; + boot.lanzaboote = { + enable = true; + pkiBundle = "/var/lib/sbctl"; + }; + } + ) + ]; }; alpha-site = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; |
