fix(home-server): get clevis finally working with systemd initrd

This commit is contained in:
Felix Schröter 2025-05-20 22:37:53 +02:00
parent f0c6687e4c
commit bd3550ef0e
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -145,7 +145,8 @@ in
authorizedKeys = config.users.users.felschr.openssh.authorizedKeys.keys;
};
};
boot.initrd.systemd.network.wait-online.anyInterface = true;
boot.initrd.systemd.network.networks."10-lan" = config.systemd.network.networks."10-lan";
boot.initrd.systemd.users.root.shell = "/bin/systemd-tty-ask-password-agent";
# allow automated decryption
# `echo -n '<LUKS passphrase here>' | clevis encrypt tang '{"url": "http://doctr.local:9090"}' > home-server-enc.jwe`
boot.initrd.clevis.enable = true;