From 8014e0e763937e8fa09b8f3e1758dcaf253a005e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 8 May 2023 19:48:10 -0700 Subject: tahoe: move the initrd code It's the only host that uses this code. --- modules/system/boot/default.nix | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 modules/system/boot/default.nix (limited to 'modules/system/boot') diff --git a/modules/system/boot/default.nix b/modules/system/boot/default.nix deleted file mode 100644 index b223336..0000000 --- a/modules/system/boot/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ pkgs, config, lib, ... }: -let cfg = config.my.system.boot; -in -{ - options.my.system.boot = with lib; { - initrd = { - network = { enable = mkEnableOption "enable SSH with initrd"; }; - }; - }; - - config = { - boot = { - initrd = { - network = lib.mkIf cfg.initrd.network.enable { - 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; - }; - }; - }; - }; - }; -} -- cgit 1.4.1