mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
7b091cefa4
commit
61ca5bdbce
3 changed files with 10 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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-*
|
||||
|
|
12
nix/local.mk
12
nix/local.mk
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue