summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2023-08-26 06:28:12 +0200
committerAlan Pearce2023-08-29 06:50:36 +0200
commiteac68ad549a2b60e23aa8d6e4edf75993c95733b (patch)
tree6d89503e0fababd33ef8c80fd9ea7debf629daf7 /system
parent5d07144b21b03ce19c5d28cf0d510883ed16f95c (diff)
downloadnixfiles-eac68ad549a2b60e23aa8d6e4edf75993c95733b.tar.lz
nixfiles-eac68ad549a2b60e23aa8d6e4edf75993c95733b.tar.zst
nixfiles-eac68ad549a2b60e23aa8d6e4edf75993c95733b.zip
prefect: enable building kernel for nanopi
Diffstat (limited to 'system')
-rw-r--r--system/prefect.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index 5aefa02c..dd411573 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -124,4 +124,17 @@
   };
 
   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"
+    ];
+  };
 }