]> git.scottworley.com Git - nix-env-apps/blob - README.md
Desktop Entry
[nix-env-apps] / README.md
1 # nix-env-apps
2
3 A simple GUI to make managing declarative nix-env easier
4
5 It has two buttons: "Edit Configuration" and "Apply Configuration"
6
7 The "Edit Configuration" button launches an editor on
8 `~/.config/nixpkgs/overlays/userPackages.nix`, creating it with a
9 useful template if it doesn't exist. All you have to do is put the
10 applications you want installed between the [ ] brackets. For example,
11 to add Firefox and LibreOffice, you'd type `firefox` and `libreoffice`
12 where shown here:
13
14 final: prev: {
15 userPackages = final.buildEnv {
16 name = "userPackages";
17 paths = (with final; [
18
19 firefox
20 libreoffice
21
22 ];
23 };
24 }
25
26 Remember to save before pressing "Apply Configuration"!
27
28 The "Apply Configuration" button runs `nix-env -riA nixos.userPackages`,
29 which makes your changes take effect. Note that this **removes** any
30 other packages that you may have installed imperatively with `nix-env -i`.
31 Prefer declarative installation by listing everything you want installed
32 in the "Edit Configuration" configuration file!