From 40ef4219488bd4bc5eace6298483d02add03fc22 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 28 Apr 2022 17:24:48 +0200 Subject: [PATCH] Use the same version of nixpkgs for nix-shell --- configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 1c29ea1..90e403b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: with pkgs; @@ -129,6 +129,10 @@ in { options mac80211 beacon_loss_count=1000 probe_wait_ms=75 ''; + # Use same version of nixpkgs for nix-shell + nix.nixPath = let path = toString ./.; + in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ]; + # Import other configuration modules imports = [ ./modules/hardware-configuration.nix