diff options
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/default.nix | 1 | ||||
| -rw-r--r-- | modules/nixos/remote-unlock.nix | 31 |
2 files changed, 0 insertions, 32 deletions
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index a3c5d70..c214a72 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -6,7 +6,6 @@ ./home-manager.nix ./nas-client.nix ./nix.nix - ./remote-unlock.nix ./user.nix ]; } diff --git a/modules/nixos/remote-unlock.nix b/modules/nixos/remote-unlock.nix deleted file mode 100644 index 38b023d..0000000 --- a/modules/nixos/remote-unlock.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, config, ... }: -let - cfg = config.my.modules.remote-unlock; -in -{ - options.my.modules.remote-unlock = with lib; { - enable = mkEnableOption "remote unlock"; - }; - - config = lib.mkIf cfg.enable { - boot.kernelParams = [ - "ip=dhcp" - ]; - - boot.initrd.network = { - enable = true; - postCommands = "echo 'cryptsetup-askpass' >> /root/.profile"; - flushBeforeStage2 = true; - ssh = { - enable = true; - port = 911; - hostKeys = [ - "/etc/initrd/ssh_host_ed25519_key" - ]; - authorizedKeys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" - ]; - }; - }; - }; -} |
