'How can I combine two lists in Nix?

I've currently got a list defined as:

   environment.systemPackages = with pkgs; [
     acpi
     ag
     alacritty
     audacity
     awscli
     bash
     breeze-gtk
     cabal-install
    ];

How would I go about defining two lists and then merging them to set the environment.systemPackages value?

I'd like to split the list so it's easier to manage groups of related packages.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source