Use nixpkgs from flake input as NIX_PATH
This commit is contained in:
parent
f48dac30ff
commit
daefb70e6f
2 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
nixosConfigurations.nixos-desktop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos-desktop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit nixpkgs; };
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
@ -30,6 +31,7 @@
|
||||||
|
|
||||||
nixosConfigurations.froidmpa-laptop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.froidmpa-laptop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit nixpkgs; };
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, nixpkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
@ -9,6 +9,9 @@
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
nixPath = [
|
||||||
|
"nixpkgs=${nixpkgs}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue