config file

This commit is contained in:
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;