diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-02-28 13:00:50 +0100 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-02-28 13:00:50 +0100 |
| commit | 2f864beb9c0910d36c386571a89fff227d43cd34 (patch) | |
| tree | af31dcff8884b287917489e8366d58683a3dc0a9 /modules/nixos/personal/nix.nix | |
| parent | 41c057f87e8f27dbd53afe212b0c1c3323437f8c (diff) | |
nixos: luks: disable tmp keyfile (broken)
Diffstat (limited to 'modules/nixos/personal/nix.nix')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index a66ba07..a5c6e77 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -143,9 +143,9 @@ in { # Creating temporary LUKS key file for next reboot... if [[ "''${booted}" != "''${built}" && "''${do_reboot}" = true ]] then - dd if=/dev/urandom of=/boot/keyfile bs=1024 count=4 - chmod 400 /boot/keyfile - cryptsetup --verbose luksAddKey --key-file /etc/luks/keyfile ${cryptCfg.device} /boot/keyfile + # dd if=/dev/urandom of=/boot/keyfile bs=1024 count=4 + # chmod 400 /boot/keyfile + # cryptsetup --verbose luksAddKey --key-file /etc/luks/keyfile ${cryptCfg.device} /boot/keyfile fi ''; postStop = '' |
