repos options type

This commit is contained in:
Zynh Ludwig 2024-07-31 23:08:41 -07:00
parent 3b36f85701
commit 20589c8c11
2 changed files with 18 additions and 0 deletions

View file

@ -6,6 +6,14 @@ in
{ {
options.repo-clone = { options.repo-clone = {
enable = lib.mkEnableOption "repo-clone service"; enable = lib.mkEnableOption "repo-clone service";
repos = lib.mkOption {
type = import ./repo.nix { inherit lib; };
description = ''
attribute set of repos to clone
'';
default = { };
};
}; };

10
repo.nix Normal file
View file

@ -0,0 +1,10 @@
{ lib, ... }:
let
inherit (lib)
types;
in
types.attrsOf (types.submodule ({ ... }: {
options = { };
config = { };
}))