loki: Get root user info for microvms from module
This commit is contained in:
parent
5f351fe376
commit
37b9e4585f
1 changed files with 4 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue