<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/gnu/services/nix.scm, branch master</title>
<subtitle>Transactional package manager, declarative GNU/Linux distribution, reproducible deployment tool, and more! https://guix.gnu.org</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/'/>
<entry>
<title>services: nix: Point Nix to bin/bash.</title>
<updated>2025-09-21T17:20:19+00:00</updated>
<author>
<name>Jean-Pierre De Jesus DIAZ</name>
<email>me@jeandudey.tech</email>
</author>
<published>2025-09-18T13:12:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=12699cf858cb4c07641ce63ca2d54e5bd048ca0b'/>
<id>12699cf858cb4c07641ce63ca2d54e5bd048ca0b</id>
<content type='text'>
The nix-service-type will create the nix.conf file pointing to
`bin/sh' file in the bash-minimal package, however this is a symbolic
link to `bin/bash' in that same package, so when the sandbox gets
created there will be a symlink in the Nix sandbox like this:

  drwxr-xr-x  2 nobody nogroup 4096 Sep 18 13:10 .
  drwxr-x--- 10 nobody nixbld  4096 Sep 18 13:10 ..
  lrwxrwxrwx  1 nobody nogroup    4 Jan  1  1970 sh -&gt; bash

Making builds that depend on /bin/sh fail since /bin/bash does not
exist in the sandbox.

* gnu/services/nix.scm (nix-service-etc): Change ‘build-sandbox-paths’ to
point to ‘bin/bash’.

Change-Id: I9138e9b772b8468382cfde6d133f0758837d03ff
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The nix-service-type will create the nix.conf file pointing to
`bin/sh' file in the bash-minimal package, however this is a symbolic
link to `bin/bash' in that same package, so when the sandbox gets
created there will be a symlink in the Nix sandbox like this:

  drwxr-xr-x  2 nobody nogroup 4096 Sep 18 13:10 .
  drwxr-x--- 10 nobody nixbld  4096 Sep 18 13:10 ..
  lrwxrwxrwx  1 nobody nogroup    4 Jan  1  1970 sh -&gt; bash

Making builds that depend on /bin/sh fail since /bin/bash does not
exist in the sandbox.

* gnu/services/nix.scm (nix-service-etc): Change ‘build-sandbox-paths’ to
point to ‘bin/bash’.

Change-Id: I9138e9b772b8468382cfde6d133f0758837d03ff
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Fix activation.</title>
<updated>2024-06-02T15:04:34+00:00</updated>
<author>
<name>Oleg Pykhalov</name>
<email>go.wigust@gmail.com</email>
</author>
<published>2024-06-02T08:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=bc06affabcf68bbe93e9afee13bef8cc8c6336a2'/>
<id>bc06affabcf68bbe93e9afee13bef8cc8c6336a2</id>
<content type='text'>
This commit follows 797be0ea5c3703ad96acd32c98dca5f946cf5c95.

Reported by kiasoc5 &lt;kiasoc5@disroot.org&gt; at
&lt;https://lists.gnu.org/archive/html/help-guix/2024-05/msg00185.html&gt;.

* gnu/services/nix.scm (nix-activation): Avoid provisioning the store if it
already exists.

Change-Id: I159e8af5d7bd6ce62857b356d6e9ac68fe16acf4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit follows 797be0ea5c3703ad96acd32c98dca5f946cf5c95.

Reported by kiasoc5 &lt;kiasoc5@disroot.org&gt; at
&lt;https://lists.gnu.org/archive/html/help-guix/2024-05/msg00185.html&gt;.

* gnu/services/nix.scm (nix-activation): Avoid provisioning the store if it
already exists.

Change-Id: I159e8af5d7bd6ce62857b356d6e9ac68fe16acf4
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Mount Nix store read only.</title>
<updated>2024-05-29T03:16:24+00:00</updated>
<author>
<name>Oleg Pykhalov</name>
<email>go.wigust@gmail.com</email>
</author>
<published>2024-05-19T12:19:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=797be0ea5c3703ad96acd32c98dca5f946cf5c95'/>
<id>797be0ea5c3703ad96acd32c98dca5f946cf5c95</id>
<content type='text'>
* gnu/services/nix.scm (nix-shepherd-service): Add requirements.
(%nix-store-directory): New variable.
(nix-service-type): Add file-system-service-type extension.

Change-Id: I18a5d58c92c1f2b5b6dcecc3d5b439cc15bf4e49
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/nix.scm (nix-shepherd-service): Add requirements.
(%nix-store-directory): New variable.
(nix-service-type): Add file-system-service-type extension.

Change-Id: I18a5d58c92c1f2b5b6dcecc3d5b439cc15bf4e49
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Fix nix-shepherd-service.</title>
<updated>2022-12-15T10:13:24+00:00</updated>
<author>
<name>Christopher Baines</name>
<email>mail@cbaines.net</email>
</author>
<published>2022-12-15T10:13:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=f4dc53881b79b324ce7da731ac579a41c5078a48'/>
<id>f4dc53881b79b324ce7da731ac579a41c5078a48</id>
<content type='text'>
* gnu/services/nix.scm (nix-shepherd-service): Un-gexp build-directory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/nix.scm (nix-shepherd-service): Un-gexp build-directory.
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Add more configuration fields.</title>
<updated>2022-12-13T16:46:39+00:00</updated>
<author>
<name>Petr Hodina</name>
<email>phodina@protonmail.com</email>
</author>
<published>2022-10-31T15:12:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=22acc0b0291cc067a6a3ce36c7ca8e5f68fe4db6'/>
<id>22acc0b0291cc067a6a3ce36c7ca8e5f68fe4db6</id>
<content type='text'>
* gnu/services/nix.scm (&lt;nix-configuration&gt;)[build-directory]: New field.
(nix-service-etc, nix-shepherd-service): Take them into account.
* doc/guix.texi (Nix): Update it.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/nix.scm (&lt;nix-configuration&gt;)[build-directory]: New field.
(nix-service-etc, nix-shepherd-service): Take them into account.
* doc/guix.texi (Nix): Update it.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>services: Accept &lt;inferior-package&gt;s in lieu of &lt;package&gt;s.</title>
<updated>2021-11-30T00:08:55+00:00</updated>
<author>
<name>Tobias Geerinckx-Rice</name>
<email>me@tobias.gr</email>
</author>
<published>2021-11-18T21:44:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=892f1b7273d57b25940700877a02618fe826cc08'/>
<id>892f1b7273d57b25940700877a02618fe826cc08</id>
<content type='text'>
* gnu/services/authentication.scm (fprintd-configuration)
(nslcd-configuration): Substitute file-like objects for package ones.
* gnu/services/cgit.scm (cgit-configuration, opaque-cgit-configuration):
Likewise.
* gnu/services/cups.scm (package-list?, cups-configuration): Likewise.
* gnu/services/dns.scm (verify-knot-configuration)
(ddclient-configuration): Likewise.
* gnu/services/docker.scm (docker-configuration): Likewise.
* gnu/services/file-sharing.scm (transmission-daemon-configuration): Likewise.
* gnu/services/getmail.scm (getmail-configuration): Likewise.
* gnu/services/mail.scm (dovecot-configuration)
(opaque-dovecot-configuration): Likewise.
* gnu/services/messaging.scm (prosody-configuration)
(opaque-prosody-configuration): Likewise.
* gnu/services/monitoring.scm (zabbix-server-configuration)
(zabbix-agent-configuration): Likewise.
* gnu/services/networking.scm (opendht-configuration): Likewise.
* gnu/services/pm.scm (tlp-configuration): Likewise.
* gnu/services/telephony.scm (jami-configuration): Likewise.
* gnu/services/virtualization.scm (libvirt-configuration)
(qemu-guest-agent-configuration): Likewise.
* gnu/services/vpn.scm (openvpn-client-configuration): Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/authentication.scm (fprintd-configuration)
(nslcd-configuration): Substitute file-like objects for package ones.
* gnu/services/cgit.scm (cgit-configuration, opaque-cgit-configuration):
Likewise.
* gnu/services/cups.scm (package-list?, cups-configuration): Likewise.
* gnu/services/dns.scm (verify-knot-configuration)
(ddclient-configuration): Likewise.
* gnu/services/docker.scm (docker-configuration): Likewise.
* gnu/services/file-sharing.scm (transmission-daemon-configuration): Likewise.
* gnu/services/getmail.scm (getmail-configuration): Likewise.
* gnu/services/mail.scm (dovecot-configuration)
(opaque-dovecot-configuration): Likewise.
* gnu/services/messaging.scm (prosody-configuration)
(opaque-prosody-configuration): Likewise.
* gnu/services/monitoring.scm (zabbix-server-configuration)
(zabbix-agent-configuration): Likewise.
* gnu/services/networking.scm (opendht-configuration): Likewise.
* gnu/services/pm.scm (tlp-configuration): Likewise.
* gnu/services/telephony.scm (jami-configuration): Likewise.
* gnu/services/virtualization.scm (libvirt-configuration)
(qemu-guest-agent-configuration): Likewise.
* gnu/services/vpn.scm (openvpn-client-configuration): Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Add /bin/sh to build-sandbox-paths.</title>
<updated>2021-04-26T17:03:55+00:00</updated>
<author>
<name>Oleg Pykhalov</name>
<email>go.wigust@gmail.com</email>
</author>
<published>2021-04-22T16:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=43a7724040560d35e9e3a19bd1cfdb7e5c4c4711'/>
<id>43a7724040560d35e9e3a19bd1cfdb7e5c4c4711</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/46297&gt;.

* gnu/services/nix.scm (nix-service-etc): Add /bin/sh to build-sandbox-paths.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes &lt;https://bugs.gnu.org/46297&gt;.

* gnu/services/nix.scm (nix-service-etc): Add /bin/sh to build-sandbox-paths.
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Move nix.conf generation to etc-service-type.</title>
<updated>2020-12-06T09:48:48+00:00</updated>
<author>
<name>Zhu Zihao</name>
<email>all_but_last@163.com</email>
</author>
<published>2020-12-06T08:26:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=8e73bf754f95fac5a383b90405e741d1cf1aaeb9'/>
<id>8e73bf754f95fac5a383b90405e741d1cf1aaeb9</id>
<content type='text'>
/etc/nix/nix.conf is a static file doesn't need rebuild on every boot.

* gnu/services/nix.scm (nix-activation): Don't create /etc/nix/nix.conf.
(nix-service-etc): New function.
(nix-service-type): New service-extension "nix-service-etc" to etc-service-type.

Signed-off-by: 宋文武 &lt;iyzsong@member.fsf.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
/etc/nix/nix.conf is a static file doesn't need rebuild on every boot.

* gnu/services/nix.scm (nix-activation): Don't create /etc/nix/nix.conf.
(nix-service-etc): New function.
(nix-service-type): New service-extension "nix-service-etc" to etc-service-type.

Signed-off-by: 宋文武 &lt;iyzsong@member.fsf.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Add extra-options.</title>
<updated>2020-07-25T09:27:35+00:00</updated>
<author>
<name>Oleg Pykhalov</name>
<email>go.wigust@gmail.com</email>
</author>
<published>2020-07-25T08:51:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=64c6282e7fc69ff58e7257a7e72284f63f2f5956'/>
<id>64c6282e7fc69ff58e7257a7e72284f63f2f5956</id>
<content type='text'>
* gnu/services/nix.scm (&lt;nix-configuration&gt;)[extra-options]: New field.
(nix-shepherd-service): Add this.
(nix-activation): Add new line to the end of /etc/nix/nix.conf file.
* doc/guix.texi (Miscellaneous Services)[Nix service]: Document this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/nix.scm (&lt;nix-configuration&gt;)[extra-options]: New field.
(nix-shepherd-service): Add this.
(nix-activation): Add new line to the end of /etc/nix/nix.conf file.
* doc/guix.texi (Miscellaneous Services)[Nix service]: Document this.
</pre>
</div>
</content>
</entry>
<entry>
<title>services: nix: Fix typo.</title>
<updated>2020-07-25T09:27:35+00:00</updated>
<author>
<name>Oleg Pykhalov</name>
<email>go.wigust@gmail.com</email>
</author>
<published>2020-07-25T08:48:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=3601d802d55106e36e3279680d4728dd3cfe3b4c'/>
<id>3601d802d55106e36e3279680d4728dd3cfe3b4c</id>
<content type='text'>
* gnu/services/nix.scm (&lt;nix-configuration&gt;): Fix typo.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/services/nix.scm (&lt;nix-configuration&gt;): Fix typo.
</pre>
</div>
</content>
</entry>
</feed>
