aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-04-14 19:12:48 +0200
committerLinnea Gräf <nea@nea.moe>2025-04-14 19:12:48 +0200
commit707919fa830208d2e2bf7fed1317eb8fbd6fbffd (patch)
treeed43bb5faa61d904d320bdb9d0b2818b2f1b26c2 /flake.nix
parent9e7b286a8224f5c146c3f4286b8c76e992e68f0a (diff)
downloadnix-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.nix25
1 files changed, 24 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index cecefc3..99af226 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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";