From 37b9e4585fc35b9e7cb303cb03303cd86a57d16b Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 14 Nov 2023 14:46:22 +0100 Subject: [PATCH] loki: Get root user info for microvms from module --- machines/loki/vm.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/machines/loki/vm.nix b/machines/loki/vm.nix index a471614..d5f5475 100644 --- a/machines/loki/vm.nix +++ b/machines/loki/vm.nix @@ -2,7 +2,10 @@ let mkK3sNode = name: isServer: ipv4Address: ipv6Address: macAddress: { config = { - imports = [ inputs.sops.nixosModules.sops ]; + imports = [ + inputs.sops.nixosModules.sops + ../../users/root + ]; microvm = { mem = 1024; @@ -41,16 +44,6 @@ let hypervisor = "cloud-hypervisor"; }; - users.users.root = { - initialHashedPassword = ""; - openssh.authorizedKeys.keyFiles = [ - (pkgs.fetchurl { - url = "https://github.com/eboskma.keys"; - sha256 = "uwK4FSLSHiwCJU9U7RBFHIoCmr7uUQLM0JM1u0bi4xo="; - }) - ]; - }; - services = { k3s = { enable = true;