1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 12:03:55 +02:00

enhancements

This commit is contained in:
h0nIg 2025-06-26 23:33:27 +02:00 committed by GitHub
parent 2481e9a203
commit 8fbc27af46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,10 +176,16 @@ let
"${k}:x:${toString gid}:${lib.concatStringsSep "," members}";
groupContents = (lib.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs groupToGroup groups)));
nixConfContents =
pkgs.dockerTools.nixConf
{
toConf = with pkgs.lib.generators; toKeyValue {
mkKeyValue = mkKeyValueDefault {
mkValueString = v: if lib.isList v then lib.concatStringsSep " " v else mkValueStringDefault { } v;
} " = ";
};
nixConfContents = toConf {
sandbox = false;
build-users-group = "nixbld";
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
userHome = if uid == 0 then "/root" else "/home/${uname}";