guix-gc.service.in 681 B

123456789101112131415161718192021
  1. # This is a "service unit file" for the systemd init system to perform a
  2. # one-shot 'guix gc' operation. It is meant to be triggered by a timer.
  3. # Drop it in /etc/systemd/system or similar together with 'guix-gc.timer'
  4. # to set it up.
  5. [Unit]
  6. Description=Discard unused Guix store items
  7. [Service]
  8. Type=oneshot
  9. # Customize the 'guix gc' arguments to fit your needs.
  10. ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix gc -d 1m -F 10G
  11. PrivateDevices=yes
  12. PrivateNetwork=yes
  13. PrivateUsers=no
  14. ProtectKernelTunables=yes
  15. ProtectKernelModules=yes
  16. ProtectControlGroups=yes
  17. MemoryDenyWriteExecute=yes
  18. SystemCallFilter=@default @file-system @basic-io @system-service