and remove baz from the list, baz will still be installed. If you have this NixOS config:
packages = with pkgs; [
foo
bar
baz
]
and remove baz, you will no longer have baz installed[0]. Or put differently, ansible is never comprehensive, nix is[1]. Of course, ansible is a lot easier IMHO so choose your tradeoffs.
[0] I mean, insofar as packages are ever "installed" in nix. But for our purposes using that word is fine.
[1] Generally. Like, nothing prevents you from creating a python virtualenv or dropping config files around or coloring outside the lines in other ways, but using the system in the straightforward idiomatic way does leave you with everything encoded in a single config.
If you have this ansible:
and remove baz from the list, baz will still be installed. If you have this NixOS config: and remove baz, you will no longer have baz installed[0]. Or put differently, ansible is never comprehensive, nix is[1]. Of course, ansible is a lot easier IMHO so choose your tradeoffs.[0] I mean, insofar as packages are ever "installed" in nix. But for our purposes using that word is fine.
[1] Generally. Like, nothing prevents you from creating a python virtualenv or dropping config files around or coloring outside the lines in other ways, but using the system in the straightforward idiomatic way does leave you with everything encoded in a single config.