diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-01-13 11:22:51 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-01-13 11:22:51 +0100 |
commit | 79004a0077ad0d584859e39bf7ec881e4ae67999 (patch) | |
tree | 00a6dfae98e9504cf92764e682d6dfc2fdfa607e /system-profiles/initrd-ssh | |
parent | 9561f15bea5add0e436fb8fc2bd83637eaf8814c (diff) | |
download | nixos-79004a0077ad0d584859e39bf7ec881e4ae67999.tar nixos-79004a0077ad0d584859e39bf7ec881e4ae67999.tar.gz nixos-79004a0077ad0d584859e39bf7ec881e4ae67999.tar.bz2 nixos-79004a0077ad0d584859e39bf7ec881e4ae67999.tar.xz nixos-79004a0077ad0d584859e39bf7ec881e4ae67999.zip |
initrd ssh: force command cryptsetup-askpass
Diffstat (limited to 'system-profiles/initrd-ssh')
-rw-r--r-- | system-profiles/initrd-ssh/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system-profiles/initrd-ssh/default.nix b/system-profiles/initrd-ssh/default.nix index dca0f125..5176234f 100644 --- a/system-profiles/initrd-ssh/default.nix +++ b/system-profiles/initrd-ssh/default.nix | |||
@@ -13,6 +13,10 @@ with lib; | |||
13 | enable = true; | 13 | enable = true; |
14 | hostKeys = [ "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_rsa_key" ]; | 14 | hostKeys = [ "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_rsa_key" ]; |
15 | authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys ++ map (kF: builtins.readFile kF) config.users.users.root.openssh.authorizedKeys.keyFiles; | 15 | authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys ++ map (kF: builtins.readFile kF) config.users.users.root.openssh.authorizedKeys.keyFiles; |
16 | |||
17 | extraConfig = '' | ||
18 | ForceCommand cryptsetup-askpass | ||
19 | ''; | ||
16 | }; | 20 | }; |
17 | }; | 21 | }; |
18 | 22 | ||