diff options
author | Efraim Flashner <[email protected]> | 2025-03-02 14:21:59 +0200 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2025-03-02 14:21:59 +0200 |
commit | 61ca5bdbce55c38615b6f98a1835fa64b5220a7b (patch) | |
tree | 6047e11fb03c607d8bb189c08180cb03b799d52b | |
parent | 7b091cefa4c0179b1e86130fe8f9fa7ba899db9e (diff) |
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
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | etc/guix-gc.timer.in (renamed from etc/guix-gc.timer) | 0 | ||||
-rw-r--r-- | nix/local.mk | 12 |
3 files changed, 10 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index cdb3869de0..66c2ea39a5 100644 --- a/.gitignore +++ b/.gitignore @@ -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-* diff --git a/etc/guix-gc.timer b/etc/guix-gc.timer.in index 192132fbda..192132fbda 100644 --- a/etc/guix-gc.timer +++ b/etc/guix-gc.timer.in diff --git a/nix/local.mk b/nix/local.mk index 0d23a48a02..53938ff52a 100644 --- a/nix/local.mk +++ b/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 \ < "$<" > "[email protected]"; \ mv "[email protected]" "$@" +etc/guix-gc.timer: etc/guix-gc.timer.in \ + $(top_builddir)/config.status + $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ + cp "[email protected]" "$@" + # 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 |