lib: zgitRepo

main
Zynh Ludwig 2024-08-29 20:27:10 -07:00
parent d1217ef796
commit 779d9946b0
2 changed files with 4 additions and 3 deletions

View File

@ -20,11 +20,10 @@ in
repos = repos =
let let
home = config.home.homeDirectory; home = config.home.homeDirectory;
zgitRepo = name: "https://git.zynh.me/Zynh0722/${name}.git";
in in
{ {
"${home}/.config/nvim".url = zgitRepo "nvim"; "${home}/.config/nvim".url = lib.zgitRepo "nvim";
"${home}/Pictures/backgrounds".url = zgitRepo "backgrounds"; "${home}/Pictures/backgrounds".url = lib.zgitRepo "backgrounds";
}; };
}; };
}; };

View File

@ -20,4 +20,6 @@ rec {
(mkIf predicate yes) (mkIf predicate yes)
(mkIf (!predicate) no) (mkIf (!predicate) no)
]; ];
zgitRepo = name: "https://git.zynh.me/Zynh0722/${name}.git";
} }