Use nixpkgs from flake input as NIX_PATH

This commit is contained in:
Paul-Henri Froidmont 2022-07-27 04:18:42 +02:00
parent f48dac30ff
commit daefb70e6f
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,7 @@
nixosConfigurations.nixos-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules =
[
home-manager.nixosModules.home-manager
@ -30,6 +31,7 @@
nixosConfigurations.froidmpa-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules =
[
home-manager.nixosModules.home-manager

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, nixpkgs, ... }:
{
nix = {
@ -9,6 +9,9 @@
extraOptions = ''
experimental-features = nix-command flakes
'';
nixPath = [
"nixpkgs=${nixpkgs}"
];
};
environment.systemPackages = with pkgs; [