packages already in system
This commit is contained in:
parent
c4008ecd66
commit
f3ea81472a
1 changed files with 2 additions and 19 deletions
21
shell.nix
21
shell.nix
|
@ -1,32 +1,15 @@
|
||||||
# Shell for bootstrapping flake-enabled nix and home-manager
|
# Shell for bootstrapping flake-enabled nix and home-manager
|
||||||
{ pkgs ? let
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
# 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.mkShell {
|
pkgs.mkShell {
|
||||||
# Enable experimental features without having to specify the argument
|
# Enable experimental features without having to specify the argument
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
nix
|
|
||||||
home-manager
|
|
||||||
git
|
git
|
||||||
nil
|
|
||||||
nixpkgs-fmt
|
|
||||||
go-task
|
go-task
|
||||||
sops
|
sops
|
||||||
pre-commit
|
pre-commit
|
||||||
gitleaks
|
gitleaks
|
||||||
|
statix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue