nixos/home/modules/repo-clone.nix

26 lines
495 B
Nix
Raw Permalink 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;
2024-08-30 03:32:25 +00:00
repos = {
"${config.home.homeDirectory}/Pictures/backgrounds".url = lib.zgitRepo "backgrounds";
};
2024-08-01 08:03:18 +00:00
};
2024-08-01 07:05:46 +00:00
};
}