Use the same version of nixpkgs for nix-shell

This commit is contained in:
coolneng 2022-04-28 17:24:48 +02:00
parent cde20f895a
commit 40ef421948
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, inputs, ... }:
with pkgs; with pkgs;
@ -129,6 +129,10 @@ in {
options mac80211 beacon_loss_count=1000 probe_wait_ms=75 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 # Import other configuration modules
imports = [ imports = [
./modules/hardware-configuration.nix ./modules/hardware-configuration.nix