From b675bd54bd5bf96cbc326ea62a0549338aa27156 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 4 Aug 2024 22:14:32 +0900 Subject: feat(modules/secure-boot)!: import lanzaboot inside module --- modules/secure-boot.nix | 6 +++++- nixos/default.nix | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/secure-boot.nix b/modules/secure-boot.nix index 72f2d83..7f079e4 100644 --- a/modules/secure-boot.nix +++ b/modules/secure-boot.nix @@ -1,9 +1,13 @@ -{ config, pkgs, lib, ... }: +{ config, inputs, pkgs, lib, ... }: let cfg = config.modules.secure-boot; in { + imports = [ + inputs.lanzaboote.nixosModules.lanzaboote + ]; + options.modules.secure-boot = { enable = lib.mkEnableOption "Secure boot with lanzaboote"; }; diff --git a/nixos/default.nix b/nixos/default.nix index 16e3cbf..599ba75 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -15,7 +15,6 @@ name = "haruka"; nixpkgs = unstable; extraModules = [ - inputs.lanzaboote.nixosModules.lanzaboote inputs.sops-nix.nixosModules.sops inputs.impermanence.nixosModules.impermanence inputs.attic.nixosModules.atticd -- cgit 1.4.1