user3416536
user3416536

Reputation: 1469

Configure location of ~/.config/nixpkgs/config.nix

Is there some envvar or similar that I can use to configure the location of ~/.config/nixpkgs/config.nix ?

Upvotes: 4

Views: 1105

Answers (1)

Robert Hensing
Robert Hensing

Reputation: 7389

Yes, the default Nixpkgs config file location can be set with NIXPKGS_CONFIG.

This will not affect invocations of Nixpkgs where the config parameter is set, such as

import <nixpkgs> { config = ...; }

or invocations of Nixpkgs by NixOS.

Upvotes: 2

Related Questions