From 8096a7b7ae97c77f42043fe7fb573998cff1f2f4 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 27 Dec 2025 22:26:44 -0600 Subject: add enable option and modeline --- hm-reposync.nix | 14 +++++++++----- 1 file 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: -- cgit v1.2.3