mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-18 08:59:39 +00:00
tree-wide: set nixpkgs in NIX_PATH without flake
This prevents double fetch
This commit is contained in:
parent
076a4448e7
commit
18418415d1
3 changed files with 9 additions and 12 deletions
|
|
@ -31,6 +31,9 @@ in
|
||||||
# nixpkgs
|
# nixpkgs
|
||||||
#
|
#
|
||||||
{
|
{
|
||||||
|
# don't use `nixpkgs.flake.source`, it uses flake so it double fetches
|
||||||
|
nix.nixPath = [ "nixpkgs=${sources.nixpkgs}" ];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = map import [
|
overlays = map import [
|
||||||
../packages/overlay.nix
|
../packages/overlay.nix
|
||||||
|
|
@ -39,10 +42,6 @@ in
|
||||||
../overlays/lix.nix
|
../overlays/lix.nix
|
||||||
../overlays/nix-monitored.nix
|
../overlays/nix-monitored.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set NIX_PATH and flake registry at the same time
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/254405
|
|
||||||
flake.source = sources.nixpkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.package = pkgs.nix-monitored;
|
nix.package = pkgs.nix-monitored;
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,9 @@ in
|
||||||
# nixpkgs
|
# nixpkgs
|
||||||
#
|
#
|
||||||
{
|
{
|
||||||
|
# don't use `nixpkgs.flake.source`, it uses flake so it double fetches
|
||||||
|
nix.nixPath = [ "nixpkgs=${sources.nixpkgs}" ];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = map import [
|
overlays = map import [
|
||||||
../overlays/agenix.nix
|
../overlays/agenix.nix
|
||||||
|
|
@ -45,10 +48,6 @@ in
|
||||||
../overlays/lix.nix
|
../overlays/lix.nix
|
||||||
../overlays/nix-monitored.nix
|
../overlays/nix-monitored.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set NIX_PATH and flake registry at the same time
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/254405
|
|
||||||
flake.source = sources.nixpkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.package = pkgs.nix-monitored;
|
nix.package = pkgs.nix-monitored;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ in
|
||||||
nix = {
|
nix = {
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
settings.builders-use-substitutes = true;
|
settings.builders-use-substitutes = true;
|
||||||
|
|
||||||
|
# don't use `nixpkgs.flake.source`, it uses flake so it double fetches
|
||||||
|
nixPath = [ "nixpkgs=${sources.nixpkgs}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
@ -70,10 +73,6 @@ in
|
||||||
../overlays/lix.nix
|
../overlays/lix.nix
|
||||||
../overlays/nix-monitored.nix
|
../overlays/nix-monitored.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set NIX_PATH and flake registry at the same time
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/254405
|
|
||||||
flake.source = sources.nixpkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.package = pkgs.nix-monitored;
|
nix.package = pkgs.nix-monitored;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue