Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Software] /usr/lib/environment.d/ apparently not working

$
0
0
Howdy,

I was going to play around with Nix as a package manager on Debian (long story). I installed the `nix-bin` and `nix-setup-systemd` packages and noted the contents of `/usr/share/doc/nix-bin/README.Debian`, which states:

Setting up of the user environment is done by the systemdconfiguration files /usr/share/user-tmpfiles.d/nix-daemon.conf[1] and/usr/lib/environment.d/nix-daemon.conf[2]. For this to work theremust be a user session instance of systemd running, as provided bythe recommended package libpam-systemd.

Well, there is indeed a `/usr/lib/environment.d/nix-daemon.conf`, and it contains the following:

NIX_REMOTE=daemonPATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/$USER/channels/nixpkgs:/nix/var/nix/profiles/per-user/$USER/channels"

However, this is not getting read or "sourced" by my SSH login shell, as all the man pages suggest it should. I definitely have a user service running:

$ systemctl --user status● debvm1    State: running    Units: 78 loaded (incl. loaded aliases)     Jobs: 0 queued   Failed: 0 units    Since: Sun 2024-03-10 09:34:34 EDT; 24min ago  systemd: 252.22-1~deb12u1   CGroup: /user.slice/user-1000.slice/user@1000.service           └─init.scope             ├─547 /lib/systemd/systemd --user             └─549 "(sd-pam)"

The output of `env | grep -i nix` returns nothing at all.

Anything else I should try, or look at?

Statistics: Posted by bityard — 2024-03-10 14:00 — Replies 2 — Views 74



Viewing all articles
Browse latest Browse all 3474

Trending Articles