Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds UIDMap and GIDMap to containerConfig #14

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ See [`container.nix`](./container.nix), [`network.nix`](./network.nix), and [`po
quadlet-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, quadlet-nix, home-manager, ... }@attrs: {
nixosConfigurations.machine = nixpksg.lib.nixosSystem {
nixosConfigurations.machine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
Expand Down
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
Loading