repos options type

main
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 = {
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 = { };
}))