config file
This commit is contained in:
parent
c38ae133e5
commit
1f8104c456
2 changed files with 6 additions and 4 deletions
|
@ -46,8 +46,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
repo-clone.pkg = pkgs.writeText "${service}.conf" ''
|
repo-clone.pkg = pkgs.writeText "${service}.conf"
|
||||||
uwu
|
(
|
||||||
'';
|
lib.strings.concatStringsSep "\n"
|
||||||
|
(lib.attrsets.mapAttrsToList (target: settings: "${target} ${settings.url}") cfg.repos)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
2
repo.nix
2
repo.nix
|
@ -4,7 +4,7 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
types mkOption;
|
types mkOption;
|
||||||
in
|
in
|
||||||
types.attrsOf (types.submodule ({ ... }: {
|
types.attrsOf (types.submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
Loading…
Reference in a new issue