2

Is there any practical difference between

users.users.default.packages = [
  pkgs.foo
];

and

home-manager = {
  users.default = {
    config,
    pkgs,
    nixpkgs,
    lib,
    specialArgs,
    options,
    modulesPath,
    nixosConfig,
    osConfig,
  }: {
    home = {
      packages = [
        pkgs.foo
      ];
    };

  };
  useGlobalPkgs = true;
};

1 Answer 1

1

The former is configured by the system owner and the latter by the user. The former thus requires root privileges. Other than that, there is no difference.

1
  • As mentioned by tejing, there are some practical differences with $PATH priority and package conflicts.
    – l0b0
    Oct 7, 2022 at 0:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .