added remote unlocking

This commit is contained in:
2026-02-16 08:36:13 -06:00
parent e8e2284d7f
commit fb1d76a097
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{self, inputs, ...}: {
flake.nixosModules.early = { pkgs, ... }: {
networking = {
useDHCP = false;
dhcpcd.enable = false;
};
boot.initrd = {
availableKernelModules = [ "r8169" ];
network = {
enable = true;
udhcpc.enable = true;
ssh = {
enable = true;
port = 222;
hostKeys = [ /etc/secrets/initrd/ssh_host_key ];
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK/zH272jRjJf120mqr6EpKB346Nufq5lKFzFTd0ckAC lily@lily-desktop" ];
shell = "/bin/cryptsetup-askpass";
};
postCommands = ''ip addr'';
};
};
};
}