repos options type
This commit is contained in:
parent
3b36f85701
commit
20589c8c11
2 changed files with 18 additions and 0 deletions
|
@ -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
10
repo.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
types;
|
||||
in
|
||||
types.attrsOf (types.submodule ({ ... }: {
|
||||
options = { };
|
||||
config = { };
|
||||
}))
|
Loading…
Reference in a new issue