Manuel Schmidt
Manuel Schmidt

Reputation: 2489

What is the recommended way to install packages not in `nixpkgs/pkgs/top-level/all-packages.nix`

I would like to install elementary-terminal. This package is not in nixpkgs/pkgs/top-level/all-packages.nix and I suppose it is therefore not sufficient to just add elementary-terminal into configuration.nix

What is the recommended way to install such packages?

Upvotes: 1

Views: 1013

Answers (1)

LnL7
LnL7

Reputation: 438

Some packages are namespaced to group them together or avoid potential conflicting names, in this case it's under pantheon.

{ config, lib, pkgs, ... }:
{
  environment.systemPackages =
    [ pkgs.pantheon.elementary-terminal
    ];
}

To figure this out use, nix-env -q, nix search or even nix-index to show the corresponding attribute path of a package.

$ nix-env -f '<nixpkgs>' -qaP elementary-terminal
pantheon.elementary-terminal  elementary-terminal-5.3.3

Upvotes: 1

Related Questions