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" ''
uwu
'';
repo-clone.pkg = pkgs.writeText "${service}.conf"
(
lib.strings.concatStringsSep "\n"
(lib.attrsets.mapAttrsToList (target: settings: "${target} ${settings.url}") cfg.repos)
);
};
}

View File

@ -4,7 +4,7 @@ let
inherit (lib)
types mkOption;
in
types.attrsOf (types.submodule ({ ... }: {
types.attrsOf (types.submodule ({ config, ... }: {
options = {
url = mkOption {
type = types.str;