repo-clone/repo.nix

24 lines
395 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
2024-08-01 07:55:15 +00:00
types.attrsOf (types.submodule ({ config, ... }: {
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
}))