nixos/home/modules/repo-clone.nix

32 lines
676 B
Nix
Raw Normal View History

2024-08-01 07:05:46 +00:00
{ lib, config, inputs, ... }:
let
cfg = config.snowhawk.repo-clone;
in
{
imports = [
inputs.repo-clone.homeManagerModule
];
options.snowhawk.repo-clone = {
enable = lib.mkEnableOption "repo-clone home-manager module";
};
config = lib.mkIf cfg.enable {
2024-08-01 09:02:35 +00:00
systemd.user.startServices = "sd-switch";
2024-08-01 08:03:18 +00:00
repo-clone = {
enable = true;
repos =
let
home = config.home.homeDirectory;
zgitRepo = name: "https://git.zynh.me/Zynh0722/${name}.git";
in
{
"${home}/.config/nvim".url = zgitRepo "nvim";
"${home}/Pictures/backgrounds".url = zgitRepo "backgrounds";
};
};
2024-08-01 07:05:46 +00:00
};
}