diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-08 19:48:10 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-08 19:48:10 -0700 |
commit | 8014e0e763937e8fa09b8f3e1758dcaf253a005e (patch) | |
tree | c8af56a0628d54b1ea2b244cc48b43a8e4fa8413 /hosts/tahoe/boot.nix | |
parent | profiles: clean up the imports (diff) | |
download | world-8014e0e763937e8fa09b8f3e1758dcaf253a005e.tar.gz |
tahoe: move the initrd code
It's the only host that uses this code.
Diffstat (limited to 'hosts/tahoe/boot.nix')
-rw-r--r-- | hosts/tahoe/boot.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/hosts/tahoe/boot.nix b/hosts/tahoe/boot.nix index bb2f53c..bf87ce8 100644 --- a/hosts/tahoe/boot.nix +++ b/hosts/tahoe/boot.nix @@ -11,10 +11,20 @@ initrd = { # driver for the NIC, required in order to get an IP address kernelModules = [ "r8169" ]; + network = { + enable = true; + postCommands = '' + echo "cryptsetup-askpass; exit" > /root/.profile + ''; + ssh = { + enable = true; + port = 2222; + hostKeys = + [ /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_rsa_key ]; + authorizedKeys = + config.users.users.fcuny.openssh.authorizedKeys.keys; + }; + }; }; }; - - my.system.boot = { - initrd = { network.enable = true; }; - }; } |