diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-27 22:26:44 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-27 22:26:44 -0600 |
| commit | 8096a7b7ae97c77f42043fe7fb573998cff1f2f4 (patch) | |
| tree | 684def43c18f4517ac9515b00504ef52bd15c736 /hm-reposync.nix | |
| parent | f813117ee176205721f48dd5e8d7b21f1c411702 (diff) | |
| download | hm-reposync-8096a7b7ae97c77f42043fe7fb573998cff1f2f4.tar.xz hm-reposync-8096a7b7ae97c77f42043fe7fb573998cff1f2f4.zip | |
add enable option and modeline
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: |
