added remote unlocking
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
self.nixosModules.localization
|
self.nixosModules.localization
|
||||||
self.nixosModules.applications
|
self.nixosModules.applications
|
||||||
self.nixosModules.utilities
|
self.nixosModules.utilities
|
||||||
|
self.nixosModules.early
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
24
modules/nixosModules/early-remote.nix
Normal file
24
modules/nixosModules/early-remote.nix
Normal 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'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user