Add shell for builder

cephiroth-v3
Pyjacpp 2026-11-21 16:35:34 +01:00
parent 17dbd7f039
commit 5fac786505
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,9 @@
{ lib, hosts, ... }:
{
lib,
hosts,
pkgs,
...
}:
let
inherit (lib)
attrValues
@ -7,10 +12,11 @@ let
;
in
{
nix.trustedUsers = [ "builder" ];
nix.settings.trustedUsers = [ "builder" ];
users.users.builder = {
isSystemUser = true;
group = "builder";
shell = pkgs.bashInteractive;
# On autorise les clés publiques des VMs à se connecter.
openssh.authorizedKeys.keys = concatMap (c: optional (c.publicSsh != null) c.publicSsh) (
attrValues hosts