mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
14 lines
372 B
Nix
14 lines
372 B
Nix
let
|
|
hasconfigRemoteCondition = {
|
|
# Custom arguments
|
|
url,
|
|
path ? "*/**",
|
|
...
|
|
} @ cfg: let
|
|
cfg' = builtins.removeAttrs cfg ["url" "path"];
|
|
in [
|
|
(cfg' // {condition = "hasconfig:remote.*.url:git@${url}:${path}";})
|
|
(cfg' // {condition = "hasconfig:remote.*.url:https://${url}/${path}";})
|
|
];
|
|
in
|
|
builtins.concatMap hasconfigRemoteCondition
|