about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-04 22:14:32 +0900
committersefidel <contact@sefidel.net>2024-08-06 16:01:39 +0900
commitb675bd54bd5bf96cbc326ea62a0549338aa27156 (patch)
tree03d11ba1bff275ab92c0743f337ac1cb2600c3d9
parentf32cda5a3179fdce587349e8014fa2ee012de4ee (diff)
downloadnixrc-b675bd54bd5bf96cbc326ea62a0549338aa27156.tar.gz
nixrc-b675bd54bd5bf96cbc326ea62a0549338aa27156.zip
feat(modules/secure-boot)!: import lanzaboot inside module
-rw-r--r--modules/secure-boot.nix6
-rw-r--r--nixos/default.nix1
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