mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
flake-parts/setups: update shared Nix config for setting up NIX_PATH
...again.
This commit is contained in:
parent
6c6ae7ecd6
commit
bae6230728
@ -10,6 +10,14 @@ let
|
||||
|
||||
flakeInputName = name:
|
||||
if name == "self" then "config" else name;
|
||||
|
||||
nixChannels =
|
||||
lib.mapAttrsToList
|
||||
(name: source: "${flakeInputName name}=${source}")
|
||||
inputs'
|
||||
++ [
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
in
|
||||
{
|
||||
config.modules = [(
|
||||
@ -23,13 +31,10 @@ in
|
||||
lib.nameValuePair (flakeInputName name) { inherit flake; })
|
||||
inputs';
|
||||
|
||||
nix.settings.nix-path =
|
||||
(lib.mapAttrsToList
|
||||
(name: source: "${flakeInputName name}=${source}")
|
||||
inputs'
|
||||
++ [
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
]);
|
||||
}
|
||||
nix.settings.nix-path = nixChannels;
|
||||
|
||||
# It doesn't work on the traditional tools like nix-shell so ehhh...
|
||||
nix.nixPath = nixChannels;
|
||||
}
|
||||
)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user