1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 11:19:47 +01:00
home-manager/tests/modules/misc/nix
midchildan 8d5e27b480
nix: add a declarative alternative to Nix channels (#4031)
* nix: add options 'nixPath' and 'keepOldNixPath'

By default, the system value for $NIX_PATH is kept as a fallback.
To completely override the system value for $NIX_PATH:

    nix.keepOldNixPath = false;

* nix: add more tests

* nix: add a declarative alternative to Nix channels

This adds a new option, 'nix.channels'. It's the Nix channels equivalent
of the 'nix.registry' option, and compatible with pre-Flake Nix tooling
including nix-env and nix-shell. Like 'nix.registry', this option is
useful for pinning Nix channels.

Channels defined in the new option can coexist with channels introduced
through the nix-channel command. If the same channel exists in both, the
one from Home Manager will be prioritized.

* nix: add news entry

* nix: make channels respect use-xdg-base-directories

* nix: remove 'with lib;'

---------

Co-authored-by: Michael Hoang <enzime@users.noreply.github.com>
2024-06-13 01:47:38 +00:00
..
default.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00
empty-settings.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00
example-channels-xdg.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00
example-channels.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00
example-registry-expected.json nix: add structural settings (#2718) 2022-03-17 22:47:32 -04:00
example-registry.nix nix: add structural settings (#2718) 2022-03-17 22:47:32 -04:00
example-settings-expected.conf nix: add structural settings (#2718) 2022-03-17 22:47:32 -04:00
example-settings.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00
keep-old-nix-path.nix nix: add a declarative alternative to Nix channels (#4031) 2024-06-13 01:47:38 +00:00