nolonger override shell with nixpkgs and blank overlays

This commit is contained in:
Joseph Hanson 2024-08-06 10:17:52 -05:00
parent 5cb8dca3a7
commit 4291f26f4e
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 2 additions and 13 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ result*
.direnv
.kube
.github
.profile

View file

@ -1,17 +1,5 @@
# Shell for bootstrapping flake-enabled nix and home-manager
{ pkgs ? let
# If pkgs is not defined, instantiate nixpkgs from locked commit
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
nixpkgs = fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
sha256 = lock.narHash;
};
system = builtins.currentSystem;
overlays = [ ]; # Explicit blank overlay to avoid interference
in
import nixpkgs { inherit system overlays; }
, ...
}:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";