diff --git a/module.nix b/module.nix index 10bb8b6..f41f590 100644 --- a/module.nix +++ b/module.nix @@ -6,6 +6,14 @@ in { options.repo-clone = { enable = lib.mkEnableOption "repo-clone service"; + + repos = lib.mkOption { + type = import ./repo.nix { inherit lib; }; + description = '' + attribute set of repos to clone + ''; + default = { }; + }; }; diff --git a/repo.nix b/repo.nix new file mode 100644 index 0000000..f57106a --- /dev/null +++ b/repo.nix @@ -0,0 +1,10 @@ +{ lib, ... }: + +let + inherit (lib) + types; +in +types.attrsOf (types.submodule ({ ... }: { + options = { }; + config = { }; +}))