guix daemon writes acl to /etc/nix/acl not /etc/guix
(address . firstname.lastname@example.org)
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 theguix 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
(name . Jeff Mickey)(address . email@example.com)(address . firstname.lastname@example.org)
Jeff Mickey <email@example.com> skribis:
Toggle quote (8 lines)> 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.
Toggle snippet (5 lines)(define %config-directory ;; This must match `NIX_CONF_DIR' as defined in `daemon.am'. (or (getenv "NIX_CONF_DIR") "@guix_sysconfdir@/guix"))
So most likely the ‘NIX_CONF_DIR’ environment variable is defined onyour system, and ‘guix archive’ simply honors that. Can you confirm? Now, we’ve honored those ‘NIX_’ variables mostly because the daemoncode, which comes from Nix, uses them, and I initially didn’t want todiverge. Nowadays it would probably make sense to rename them.
Toggle quote (2 lines)> Also, /gnu/store is set to only have 1770 permissions instead of 1774,
Toggle quote (10 lines)> 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
I think those used in the build environment, NIX_STORE andNIX_BUILD_CORES at least, are here to stay; we could provide GUIX_aliases though they couldn’t be relied on before some time. Not sure about the others! Thanks,Ludo’.