diff options
author | tv <tv@krebsco.de> | 2018-08-28 20:58:23 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-08-28 22:01:31 +0200 |
commit | 23d2950ed7d60aaa066a437b4aaffbf55a76c036 (patch) | |
tree | 16da03af09f9d72604a591c725c8ac4cc5fd554f /krebs/3modules | |
parent | ce31457b77a65d36893d622b5e1061284e90bf2d (diff) |
cgit-clear-cache: init
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/git.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix index 5ae24b40b..89726fd7b 100644 --- a/krebs/3modules/git.nix +++ b/krebs/3modules/git.nix @@ -403,9 +403,7 @@ let )); environment.systemPackages = [ - (pkgs.writeDashBin "cgit-clear-cache" '' - ${pkgs.coreutils}/bin/rm -f ${cfg.cgit.settings.cache-root}/* - '') + (pkgs.cgit-clear-cache.override { inherit (cfg.cgit.settings) cache-root; }) ]; system.activationScripts.cgit = '' |