repo-clone/repo.nix

24 lines
387 B
Nix
Raw Normal View History

2024-08-01 06:08:41 +00:00
{ lib, ... }:
let
inherit (lib)
2024-08-01 06:27:05 +00:00
types mkOption;
2024-08-01 06:08:41 +00:00
in
types.attrsOf (types.submodule ({ ... }: {
2024-08-01 06:27:05 +00:00
options = {
url = mkOption {
type = types.str;
description = ''
Url of git repo to clone
'';
};
extraArgs = mkOption {
type = types.str;
description = ''
Args to be used with the `git clone` command
'';
};
};
2024-08-01 06:08:41 +00:00
}))