From da333e0182243973bfe0936c4e22c3e7ff554569 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 13 Oct 2026 15:59:19 +0200 Subject: lanzaboot --- flake.nix | 7 ++++++- nixos/configuration.nix | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3d437de..a8af7f4 100644 --- a/flake.nix +++ b/flake.nix @@ -15,11 +15,16 @@ helium-flake.url = "github:oxcl/nix-flake-helium-browser"; helium-flake.inputs.nixpkgs.follows = "nixpkgs"; + lanzaboote = { + url = "github:nix-community/lanzaboote/v0.4.1"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, + lanzaboote home-manager, ... } @ inputs: let @@ -27,7 +32,7 @@ # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { - phos = nixpkgs.lib.nixosSystem { + phosphophyllite = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; # > Our main nixos configuration file < modules = [./nixos/configuration.nix]; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index d979252..6e006a3 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -21,6 +21,7 @@ inputs.serpantinum.nixosModules.default inputs.spicetify-nix.nixosModules.default inputs.helium-flake.nixosModules.default + inputs.lanzaboote.nixosModules.lanzaboote ]; nixpkgs = { @@ -55,9 +56,15 @@ channel.enable = false; }; - boot.loader.systemd-boot.enable = true; + # boot.loader.systemd-boot.enable = true; + boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.efi.canTouchEfiVariables = true; + boot.lanzaboote = { + enable = true; + pkiBundle = "/var/lib/sbctl"; + }; + networking.hostName = "phosphophyllite"; # Define your hostname. programs.hyprland = { @@ -140,6 +147,7 @@ fonts.packages = with pkgs; [ # (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) ]; environment.systemPackages = with pkgs; [ + sbctl wget foot starship -- cgit v1.2.3