config file

main
Zynh Ludwig 2024-08-01 00:55:15 -07:00
parent c38ae133e5
commit 1f8104c456
2 changed files with 6 additions and 4 deletions

View File

@ -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)
);
}; };
} }

View File

@ -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;