aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-27 22:26:44 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-27 22:26:44 -0600
commit8096a7b7ae97c77f42043fe7fb573998cff1f2f4 (patch)
tree684def43c18f4517ac9515b00504ef52bd15c736
parentf813117ee176205721f48dd5e8d7b21f1c411702 (diff)
downloadhm-reposync-8096a7b7ae97c77f42043fe7fb573998cff1f2f4.tar.xz
hm-reposync-8096a7b7ae97c77f42043fe7fb573998cff1f2f4.zip
add enable option and modeline
-rw-r--r--hm-reposync.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/hm-reposync.nix b/hm-reposync.nix
index 3a4bf50..b5706ea 100644
--- a/hm-reposync.nix
+++ b/hm-reposync.nix
@@ -147,10 +147,13 @@
}
);
in {
- options.reposync.outOfStoreGitRepository = lib.mkOption {
- type = lib.types.attrsOf outOfStoreGitRepositoryType;
- default = {};
- description = "imperative git repositories to be cloned";
+ options.reposync = {
+ enable = lib.mkEnableOption "generate and install reposync script";
+ outOfStoreGitRepository = lib.mkOption {
+ type = lib.types.attrsOf outOfStoreGitRepositoryType;
+ default = {};
+ description = "imperative git repositories to be cloned";
+ };
};
config = let
@@ -200,7 +203,8 @@ in {
chmod +x $out/bin/reposync
'';
};
- in {
+ in lib.mkIf cfg.enable {
home.packages = [hm-reposync];
};
}
+# vim: set ts=2 sw=2 et: