Cheatsheet: Difference between revisions
imported>Mic92 nix-env on full store paths |
imported>Danbst fix per https://github.com/NixOS/nixpkgs/issues/55556 |
||
Line 63: | Line 63: | ||
If it's a program add to systemPackages: | If it's a program add to systemPackages: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
systemPackages = with pkgs; | environment.systemPackages = with pkgs; | ||
[ <other packages...> emacs ];</syntaxhighlight> | [ <other packages...> emacs ];</syntaxhighlight> | ||
If it's a service add: | If it's a service add: |