nixos/home/modules/repo-clone.nix

31 lines
613 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;
in
{
2024-08-30 03:27:10 +00:00
"${home}/.config/nvim".url = lib.zgitRepo "nvim";
"${home}/Pictures/backgrounds".url = lib.zgitRepo "backgrounds";
2024-08-01 08:03:18 +00:00
};
};
2024-08-01 07:05:46 +00:00
};
}