diff options
Diffstat (limited to 'hm-reposync.nix')
| -rw-r--r-- | hm-reposync.nix | 14 |
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: |
