diff options
| author | Joe Mou <dev@mou.fo> | 2024-12-23 13:34:33 -0800 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2024-12-23 13:50:29 -0800 |
| commit | 9f6e0487cde95d8080543596a1a8e0d10566e960 (patch) | |
| tree | e362131a53b23bd165cebc0d1faa59cfcbe1483d /hostnix/elmo | |
| parent | c39d128c228939f62d0bd8482869cf7496c56f36 (diff) | |
Manual duperemove systemd service
Deduplicate btrfs files.
Diffstat (limited to 'hostnix/elmo')
| -rw-r--r-- | hostnix/elmo/configuration.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix index 7f5b197..b70cfe3 100644 --- a/hostnix/elmo/configuration.nix +++ b/hostnix/elmo/configuration.nix @@ -90,6 +90,16 @@ }; }; + systemd.services.duperemove = { + serviceConfig = { + Type = "simple"; + CacheDirectory = "duperemove"; + }; + script = '' + exec ${pkgs.duperemove}/bin/duperemove -dhrq --hashfile $CACHE_DIRECTORY/hashfile /srv /var + ''; + }; + networking.firewall.allowedTCPPorts = [ 80 443 ]; # This value determines the NixOS release from which the default |
