Don't require user to create profile manually even before guix-daemon runs. Default install should provide working basic environment. Revert "build: Don't embed absolute paths in .service and .conf service files." This reverts commit 613d0895b92c677e0639d5e77c55043e38e020c8. --- a/etc/guix-daemon.conf.in +++ b/etc/guix-daemon.conf.in @@ -9,1 +9,1 @@ stop on runlevel [016] -exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild +exec @bindir@/guix-daemon --build-users-group=guixbuild --- a/etc/guix-daemon.service.in +++ b/etc/guix-daemon.service.in @@ -6,1 +6,1 @@ -ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild +ExecStart=@bindir@/guix-daemon --build-users-group=guixbuild --- a/etc/guix-publish.conf.in +++ b/etc/guix-publish.conf.in @@ -9,1 +9,1 @@ stop on runlevel [016] -exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181 +exec @bindir@/guix publish --user=nobody --port=8181 --- a/etc/guix-publish.service.in +++ b/etc/guix-publish.service.in @@ -6,1 +6,1 @@ -ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181 +ExecStart=@bindir@/guix publish --user=nobody --port=8181 --- a/nix/local.mk +++ b/nix/local.mk @@ -190,7 +190,7 @@ nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service etc/guix-%.service: etc/guix-%.service.in \ $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ - $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \ + $(SED) -e 's|@''bindir''@|$(bindir)|' < \ "$<" > "$@.tmp"; \ mv "$@.tmp" "$@" @@ -201,7 +201,7 @@ nodist_upstartjob_DATA = etc/guix-daemon.conf etc/guix-publish.conf etc/guix-%.conf: etc/guix-%.conf.in \ $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ - $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \ + $(SED) -e 's|@''bindir''@|$(bindir)|' < \ "$<" > "$@.tmp"; \ mv "$@.tmp" "$@"