Add nixosSubmodule option type
Since NixOS modules expect special arguments, use a hack to provide them
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user