all repos — nixfiles @ eac68ad549a2b60e23aa8d6e4edf75993c95733b

System and user configuration, managed by nix and home-manager

prefect: enable building kernel for nanopi
Alan Pearce alan@alanpearce.eu
Sat, 26 Aug 2023 06:28:12 +0200
commit

eac68ad549a2b60e23aa8d6e4edf75993c95733b

parent

5d07144b21b03ce19c5d28cf0d510883ed16f95c

1 files changed, 13 insertions(+), 0 deletions(-)

jump to
M system/prefect.nixsystem/prefect.nix
@@ -124,4 +124,17 @@ hostName = "prefect";   };
 
   system.stateVersion = "23.05";
+
+  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
+  nix.settings.trusted-users = [ "root" "nixremote" ];
+  users.users.nixremote = {
+    shell = "/bin/sh";
+    isNormalUser = true;
+    home = "/var/lib/nixremote";
+    createHome = true;
+    openssh.authorizedKeys.keys = [
+      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxa7lxDu0M4chats/VvpFzjT3ruexKa3J9UC6ASo3bN root@NanoPi.lan"
+      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE9of82WBHK8nr8L9RGeieLMfcAWaFCeCkmvYHM9LCuT nanopi"
+    ];
+  };
 }