mirror of
https://github.com/NixOS/nix
synced 2025-07-09 12:03:55 +02:00
enhancements
This commit is contained in:
parent
2481e9a203
commit
8fbc27af46
1 changed files with 11 additions and 5 deletions
12
docker.nix
12
docker.nix
|
@ -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}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue