I have a multi-user Ubuntu desktop and I’m thinking about using nix for some packages. How can I install system-wide packages on Ubuntu with nix ? I would like some applications to be available for all users (ideally without requiring users to nix-env -i <___>).
I think this is tantamount to making a default nix-profile for all users.
I’m using nixos on one system, which is obviously well integrated, but also want to “replicate” on my Manjaro Linux install the combination of home-manager and a global configuration.nix (in that case only a kind of globally declared environment.systemPackages I guess?).
In other words, that would mean the question becomes: “how to define a global package env on a non-nixos multi user linux?”, or more specifically, can we use a certain file that takes the role of a partial configuration.nix and then something like sudo nix-... switch to apply the packages defined there to /nix/var/nix/profiles/default/?