system wide packages not installing, but build is successful
Describe the bug
I run a rebuld, and system manger files are created, but packages are not installed.
To Reproduce
Steps to reproduce the behavior:
- I am running the
ubuntu-rebuldrecipie in this justfile - which will use this flake to configure
- build successful
- And after a reboot, if I run
which 1password, there are no results.
NOTE - here is where, for example, the 1Password apps are being installed from.
Expected behavior
Items installed via:
config = {
# System-wide packages (install everything)
environment.systemPackages = with pkgs; [
_1password-gui # Desktop app
_1password-cli # CLI
];
.........
Would be available on my Ubuntu 24.04 system.
System information
- Ubuntu 24.04
- system manager via 25.05 nixpkgs (follows on the input)
Really appreciate the assist.
Cheers.
ok, I am wrong, they are installed, but the /run/system-manager/sw/bin/ has not been added to the path. and *desktop files exist in the nix store, but are not in a spot the desktop expects them to be (gnome in my case), so they never show in the launcher.
Hi, the PATH is supposed to be set by /etc/profile.d/system-manager-path.sh, which gets sourced by /etc/profile by login shells. Non-login shells that are started from login shells (like e.g. terminals in your graphical session), inherit the environment from their parent process, and that environment should include PATH.
We also have VM tests that test this for several ubuntu versions, including 24.04.
Did you maybe modify /etc/profile and remove the part that sources scripts in /etc/profile.d? Or is there another script in that directory that overwrites PATH without preserving the directory added by system-manager? Or do you maybe redefine PATH somewhere without taking into account the system-manager directory?
Since the VM test in this repository is succeeding for ubuntu 24.04, I have a suspicion that the issue might be related to some local modifications on your system.
Regarding the desktop files, that's a known limitation. This project is currently mainly focused on server use-cases. It would probably not be too difficult to implement this though, and I can review a PR if you come up with one. You can probably use NixOS as a reference and see how desktop files are handled there.