nix: Install guix-gc systemd timer.

* nix/local.mk (nodist_systemdservice_DATA): Add etc/guix-gc.timer.
(etc/guix-gc.timer): Add rule to generate file.
(EXTRA_DIST): Add guix-gc.timer.in, remove guix-gc.timer.
* gitignore: Add etc/guix-gc.timer.

Change-Id: I361aef660fe7d9803f58f4e31e16d8db595d1853
This commit is contained in:
Efraim Flashner 2025-03-02 14:21:59 +02:00
parent 7b091cefa4
commit 61ca5bdbce
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View file

@ -76,6 +76,7 @@
/etc/guix-publish.conf
/etc/guix-publish.service
/etc/guix-gc.service
/etc/guix-gc.timer
/etc/init.d/guix-daemon
/etc/openrc/guix-daemon
/guix-*

View file

@ -152,13 +152,14 @@ noinst_HEADERS = \
(lambda (in) \
(write (get-string-all in) out)))))"
# The '.service' files for systemd.
# The '.service' and other files for systemd.
systemdservicedir = $(libdir)/systemd/system
nodist_systemdservice_DATA = \
etc/gnu-store.mount \
etc/guix-daemon.service \
etc/guix-publish.service \
etc/guix-gc.service
etc/guix-gc.service \
etc/guix-gc.timer
etc/%.mount: etc/%.mount.in \
$(top_builddir)/config.status
@ -175,6 +176,11 @@ etc/guix-%.service: etc/guix-%.service.in \
< "$<" > "$@.tmp"; \
mv "$@.tmp" "$@"
etc/guix-gc.timer: etc/guix-gc.timer.in \
$(top_builddir)/config.status
$(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \
cp "$@.in" "$@"
# The service script for sysvinit.
sysvinitservicedir = $(sysconfdir)/init.d
nodist_sysvinitservice_DATA = etc/init.d/guix-daemon
@ -225,7 +231,7 @@ EXTRA_DIST += \
etc/guix-publish.service.in \
etc/guix-publish.conf.in \
etc/guix-gc.service.in \
etc/guix-gc.timer \
etc/guix-gc.timer.in \
etc/init.d/guix-daemon.in \
etc/openrc/guix-daemon.in