mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/nixos-containers: add specialArgs option (#216677)
This commit is contained in:
parent
77517d46d2
commit
c683aaaa1d
1 changed files with 11 additions and 0 deletions
|
@ -514,6 +514,7 @@ in
|
|||
};
|
||||
in [ extraConfig ] ++ (map (x: x.value) defs);
|
||||
prefix = [ "containers" name ];
|
||||
inherit (config) specialArgs;
|
||||
}).config;
|
||||
};
|
||||
};
|
||||
|
@ -555,6 +556,16 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
specialArgs = mkOption {
|
||||
type = types.attrsOf types.unspecified;
|
||||
default = {};
|
||||
description = lib.mdDoc ''
|
||||
A set of special arguments to be passed to NixOS modules.
|
||||
This will be merged into the `specialArgs` used to evaluate
|
||||
the NixOS configurations.
|
||||
'';
|
||||
};
|
||||
|
||||
ephemeral = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue