From dd522a472f2264c1ec0e12c20a1c82648ef352c6 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 1 Dec 2024 23:26:05 +0100 Subject: add user for remote building --- config/users.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/users.nix b/config/users.nix index 8dedba0..8d8715c 100644 --- a/config/users.nix +++ b/config/users.nix @@ -1,3 +1,13 @@ -{...}: { +{pkgs, ...}: { personal.user.enable = true; + users = { + users."nixremote" = { + isSystemUser = true; + shell = pkgs.busybox-sandbox-shell; + group = "nixremote"; + openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgohiYF2Dsaq6ImGaslnKJMwpiVtwAaM9cm1tpSRr7t root@kerberos"]; + }; + groups.nixremote = {}; + }; + nix.settings.trusted-users = ["nixremote"]; } -- cgit v1.2.3