diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 23:26:05 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 23:26:05 +0100 |
| commit | dd522a472f2264c1ec0e12c20a1c82648ef352c6 (patch) | |
| tree | 0e993b5c18ab9af18f3ebf2bb185a3859b9a502d /config/users.nix | |
| parent | 38cc806c1d5c999061a06b0d1da8cdee6675ed8c (diff) | |
add user for remote building
Diffstat (limited to 'config/users.nix')
| -rw-r--r-- | config/users.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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"]; } |
