I just installed NixOS for the first yesterday and noticed that Firefox appears to have been installed by default (when using the Graphical ISO image).
In my /etc/nixos/configuration.nix
file, why was Firefox installed via:
programs.firefox.enable = true;
rather than:
environment.systemPackages = with pkgs; [
firefox
];
I also see that there is a commented out line that appears to install Thunderbird this way:
users.users.samir = {
isNormalUser = true;
description = "samir";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};
What is the difference between installing a program or packages using these methods?