From 2be07e277e677a8b6d126f019ba76ab9648d035e Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sat, 10 Apr 2021 14:39:29 -0400 Subject: [PATCH] add root ssh keys to test vm --- hosts/vm/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index da04115..2822611 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -1,7 +1,8 @@ -{ ... }: +{ config, ... }: { sconfig.profile = "server"; boot.loader.grub.device = "/dev/vda"; fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; security.sudo.wheelNeedsPassword = false; + users.users.root.openssh.authorizedKeys = config.users.users.sean.openssh.authorizedKeys; }