Skip to content

Commit

Permalink
feat: add uidMaps and gidMaps to containerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockWave-1 authored and SEIAROTg committed Dec 11, 2024
1 parent e03e944 commit e977174
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions container.nix
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ let
description = "--user UID:...";
property = "Group";
};

gidMaps = quadletUtils.mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "0:10000:10" ];
description = "--gidmap";
property = "GIDMap";
};

healthCmd = quadletUtils.mkOption {
type = types.nullOr types.str;
Expand Down Expand Up @@ -449,6 +457,14 @@ let
property = "Tmpfs";
};

uidMaps = quadletUtils.mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "0:10000:10" ];
description = "--uidmap";
property = "UIDMap";
};

user = quadletUtils.mkOption {
type = types.nullOr types.str;
default = null;
Expand Down

0 comments on commit e977174

Please sign in to comment.