0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Add nixosSubmodule option type

Since NixOS modules expect special arguments, use a hack to provide them
This commit is contained in:
Shea Levy 2014-02-11 14:21:34 -05:00
parent 2deb26bd4a
commit ca1c5cfa8f
2 changed files with 21 additions and 1 deletions

View file

@ -15,6 +15,7 @@ with pkgs.lib;
};
systemd.containers = mkOption {
# !!! Should probably use nixosSubmodule here
type = types.attrsOf (types.submodule (
{ config, options, name, ... }:
{
@ -134,4 +135,4 @@ with pkgs.lib;
}) config.systemd.containers;
};
}
}