From e977174c1bb33a093217aa19415428d593bd719e Mon Sep 17 00:00:00 2001 From: ShockWave-1 Date: Mon, 9 Dec 2024 22:26:25 +0100 Subject: [PATCH] feat: add uidMaps and gidMaps to containerConfig --- container.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/container.nix b/container.nix index 45eb630..2c31226 100644 --- a/container.nix +++ b/container.nix @@ -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; @@ -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;