diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-18 06:56:54 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-18 06:56:54 +0100 |
| commit | a0a36d283ad284e9c715bb9ffb6849e1a9e80e14 (patch) | |
| tree | 307fec89f8161504fb6f2b869de26a4df6163efb /modules | |
| parent | b2b29bb3bceaee64a2f81f0095c9aa0913b1f3c5 (diff) | |
nixos: auotUpgrade: add cryptsetup to path when necessary
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index 8439dff..0ecc459 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -156,6 +156,7 @@ in { cryptCfg = luksCfg.crypt; in lib.mkIf (cryptExists && config.system.autoUpgrade.allowReboot) { + path = [pkgs.cryptsetup]; script = lib.mkAfter '' cryptsetup --verbose luksAddKey --key-file /etc/luks/keys/master ${cryptCfg.device} /etc/luks/keys/tmp ''; |
