GNU bug report logs - #78254
Replacement variables in guix-daemon.service

Previous Next

Package: guix;

Reported by: Ido Yariv <yarivido <at> gmail.com>

Date: Mon, 5 May 2025 07:19:03 UTC

Severity: normal

Merged with 78275, 78318

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ido Yariv <yarivido <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Replacement variables in guix-daemon.service
Date: Sun, 4 May 2025 21:09:35 -0400
[Message part 1 (text/plain, inline)]
Hi,

It appears guix-daemon.service leaks some replacement variables defined in
guix-daemon.service.in, e.g.:
--8<---------------cut here---------------start------------->8---
Environment='GUIX_STATE_DIRECTORY=/var/guix'
'GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale'
LC_ALL=en_US.utf8

# Run under a dedicated unprivileged user account.
User=guix-daemon

# Bind-mount the store read-write in a private namespace, to counter the
# effect of 'gnu-store.mount'.
PrivateMounts=true
BindPaths=@storedir@
--8<---------------cut here---------------end--------------->8---

From what I can tell, it looks like the replacement is done by nix/local.mk
(as opposed to self.scm), and the sed script there doesn't include all
variables, nor is it replacing matched patterns globally.

Thanks,
Ido.
[Message part 2 (text/html, inline)]

This bug report was last modified 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.