* bug#22459: guix daemon writes acl to /etc/nix/acl not /etc/guix
@ 2016-01-25 0:38 Jeff Mickey
2016-01-26 10:00 ` Ludovic Courtès
2020-05-14 12:35 ` bug#22459: Guix tools should not honor NIX_* environment variables Ricardo Wurmus
0 siblings, 2 replies; 4+ messages in thread
From: Jeff Mickey @ 2016-01-25 0:38 UTC (permalink / raw)
To: 22459
On NixOS when I follow the binary installation instructions as of 0.9.0,
it places the acl in the wrong place.
guix archive --authorize < hydra.gnu.org.pub
This puts the file in /etc/nix/acl, not /etc/guix acl. This means the
guix daemon can't find the acl, and you build everything from scratch.
I solved this locally by making them a symlink.
Also, /gnu/store is set to only have 1770 permissions instead of 1774,
which means you can't use any of your guix symlinks with 0.9.0 :/
// codemac
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22459: guix daemon writes acl to /etc/nix/acl not /etc/guix
2016-01-25 0:38 bug#22459: guix daemon writes acl to /etc/nix/acl not /etc/guix Jeff Mickey
@ 2016-01-26 10:00 ` Ludovic Courtès
2020-05-14 12:35 ` bug#22459: Guix tools should not honor NIX_* environment variables Ricardo Wurmus
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-01-26 10:00 UTC (permalink / raw)
To: Jeff Mickey; +Cc: 22459
Jeff Mickey <j@codemac.net> skribis:
> On NixOS when I follow the binary installation instructions as of 0.9.0,
> it places the acl in the wrong place.
>
> guix archive --authorize < hydra.gnu.org.pub
>
> This puts the file in /etc/nix/acl, not /etc/guix acl. This means the
> guix daemon can't find the acl, and you build everything from scratch.
(guix pki) has:
--8<---------------cut here---------------start------------->8---
(define %acl-file
(string-append %config-directory "/acl"))
--8<---------------cut here---------------end--------------->8---
where (guix config) does:
--8<---------------cut here---------------start------------->8---
(define %config-directory
;; This must match `NIX_CONF_DIR' as defined in `daemon.am'.
(or (getenv "NIX_CONF_DIR") "@guix_sysconfdir@/guix"))
--8<---------------cut here---------------end--------------->8---
So most likely the ‘NIX_CONF_DIR’ environment variable is defined on
your system, and ‘guix archive’ simply honors that.
Can you confirm?
Now, we’ve honored those ‘NIX_’ variables mostly because the daemon
code, which comes from Nix, uses them, and I initially didn’t want to
diverge. Nowadays it would probably make sense to rename them.
> Also, /gnu/store is set to only have 1770 permissions instead of 1774,
That’s not what I see:
--8<---------------cut here---------------start------------->8---
$ tar tvf guix-binary-0.9.0.x86_64-linux.tar.xz |grep /gnu/store/$
drwxrwxr-t root/root 0 1970-01-01 01:00 ./gnu/store/
--8<---------------cut here---------------end--------------->8---
Which installation method did you use?
> which means you can't use any of your guix symlinks with 0.9.0 :/
What do you mean by “your guix symlinks”?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22459: Guix tools should not honor NIX_* environment variables
2016-01-25 0:38 bug#22459: guix daemon writes acl to /etc/nix/acl not /etc/guix Jeff Mickey
2016-01-26 10:00 ` Ludovic Courtès
@ 2020-05-14 12:35 ` Ricardo Wurmus
2020-05-17 22:52 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2020-05-14 12:35 UTC (permalink / raw)
To: 22459
These NIX_* variables are still in use:
NIX_AFFINITY_HACK
NIX_BIN_DIR
NIX_BUILD_CORES
NIX_HELD_LOCKS
NIX_IGNORE_SYMLINK_STORE
NIX_STORE
NIX_STORE_DIR
This is used internally:
_NIX_OPTIONS
--
Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-17 22:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 0:38 bug#22459: guix daemon writes acl to /etc/nix/acl not /etc/guix Jeff Mickey
2016-01-26 10:00 ` Ludovic Courtès
2020-05-14 12:35 ` bug#22459: Guix tools should not honor NIX_* environment variables Ricardo Wurmus
2020-05-17 22:52 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.