mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Nix/Legacy] Fix legacy nix-* commands and enable them to use flake-locked nixpkgs + overlays
This commit is contained in:
parent
549aa24793
commit
bc950104c6
2 changed files with 5 additions and 2 deletions
|
|
@ -104,5 +104,10 @@ in
|
||||||
nixpkgs-unstable.flake = nixpkgs-unstable;
|
nixpkgs-unstable.flake = nixpkgs-unstable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.nixPath = mkBefore [
|
||||||
|
"nixpkgs=${nixpkgs.outPath}"
|
||||||
|
"nixos-config=/etc/nixos/configuration.nix"
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@ in
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
nix.nixPath =
|
nix.nixPath =
|
||||||
# Prepend default nixPath values.
|
|
||||||
options.nix.nixPath.default ++
|
|
||||||
# Append our nixpkgs-overlays.
|
# Append our nixpkgs-overlays.
|
||||||
[ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ]
|
[ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ]
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue