From f3ea81472abbb14bda79d6094c8234b53997220b Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 7 Aug 2024 19:40:21 -0500 Subject: [PATCH] packages already in system --- shell.nix | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/shell.nix b/shell.nix index 39ab879..0886006 100644 --- a/shell.nix +++ b/shell.nix @@ -1,32 +1,15 @@ # 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; } -, ... -}: -let -in +{ pkgs ? import {} }: pkgs.mkShell { # Enable experimental features without having to specify the argument NIX_CONFIG = "experimental-features = nix-command flakes"; nativeBuildInputs = with pkgs; [ - nix - home-manager git - nil - nixpkgs-fmt go-task sops pre-commit gitleaks + statix ]; }