summaryrefslogtreecommitdiff
path: root/system-profiles/initrd-all-crypto-modules.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-09-12 19:56:53 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-09-12 19:56:53 +0200
commitdf17630c7e18f846370e2595472513f1b52bf99c (patch)
tree4c5f8e0e6ffd1a19bfec156ec90c97a7db2a46e2 /system-profiles/initrd-all-crypto-modules.nix
parent211c680cb30b635cb7b8a54bc4471ac567432a3a (diff)
downloadnixos-df17630c7e18f846370e2595472513f1b52bf99c.tar
nixos-df17630c7e18f846370e2595472513f1b52bf99c.tar.gz
nixos-df17630c7e18f846370e2595472513f1b52bf99c.tar.bz2
nixos-df17630c7e18f846370e2595472513f1b52bf99c.tar.xz
nixos-df17630c7e18f846370e2595472513f1b52bf99c.zip
...
Diffstat (limited to 'system-profiles/initrd-all-crypto-modules.nix')
-rw-r--r--system-profiles/initrd-all-crypto-modules.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/system-profiles/initrd-all-crypto-modules.nix b/system-profiles/initrd-all-crypto-modules.nix
index 3b3b24fc..45cd4b74 100644
--- a/system-profiles/initrd-all-crypto-modules.nix
+++ b/system-profiles/initrd-all-crypto-modules.nix
@@ -1,4 +1,4 @@
1{ pkgs, config, ...}: 1{ lib, pkgs, config, ...}:
2let 2let
3 moduleList = builtins.fromJSON (builtins.readFile (pkgs.runCommandCC "crypto-modules" { buildInputs = with pkgs; [ jq ]; } '' 3 moduleList = builtins.fromJSON (builtins.readFile (pkgs.runCommandCC "crypto-modules" { buildInputs = with pkgs; [ jq ]; } ''
4 echo "[]" > $out 4 echo "[]" > $out
@@ -12,6 +12,13 @@ let
12 '')); 12 ''));
13in { 13in {
14 boot.initrd.luks.cryptoModules = moduleList ++ [ 14 boot.initrd.luks.cryptoModules = moduleList ++ [
15 "encrypted_keys" "rng" 15 "encrypted_keys" "trusted" "rng"
16 ];
17 boot.kernelPatches = [
18 {
19 name = "encrypted_key";
20 patch = null;
21 extraStructuredConfig.ENCRYPTED_KEYS = lib.kernel.yes;
22 }
16 ]; 23 ];
17} 24}