From f24791fc84f30d643bd64bedd095fb8198ddb70d Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Tue, 14 May 2024 06:36:48 +0530 Subject: [PATCH] feat: Add public ssh key to live iso --- nixos/device.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/device.nix b/nixos/device.nix index c2f2e37f..5ec18c16 100644 --- a/nixos/device.nix +++ b/nixos/device.nix @@ -37,6 +37,16 @@ builtins.listToAttrs (builtins.map (device: { ] ++ nixpkgs.lib.optionals device.live [ (nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix") + ({pkgs, ...}: { + systemd.services.sshd.wantedBy = pkgs.lib.mkForce ["multi-user.target"]; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdV/cFR8ENy4vCHnK/dL+Ud7jOJV7+iLeAe8y5nj3xF email@uttarayan.me" + ]; + networking = { + # usePredictableInterfaceNames = false; + nameservers = ["1.1.1.1"]; + }; + }) ]; }; })