Update shell

This commit is contained in:
Joseph Hanson 2024-05-18 10:52:47 -05:00
parent 316cd4ef93
commit d1ac19d946
2 changed files with 1 additions and 20 deletions

View file

@ -80,7 +80,7 @@
formatter = forAllSystems (system: nixpkgs.legacyPackages."${system}".nixpkgs-fmt); formatter = forAllSystems (system: nixpkgs.legacyPackages."${system}".nixpkgs-fmt);
# setup devshells against shell.nix # setup devshells against shell.nix
devShells = forAllSystems (pkgs: import ./shell.nix { inherit pkgs; }); # devShells = forAllSystems (pkgs: import ./shell.nix { inherit pkgs; });
# extend lib with my custom functions # extend lib with my custom functions
lib = nixpkgs.lib.extend ( lib = nixpkgs.lib.extend (

View file

@ -8,33 +8,16 @@
}; };
system = builtins.currentSystem; system = builtins.currentSystem;
overlays = [ ]; # Explicit blank overlay to avoid interference overlays = [ ]; # Explicit blank overlay to avoid interference
in in
import nixpkgs { inherit system overlays; } import nixpkgs { inherit system overlays; }
, ... , ...
}: }:
let let
# setup the ssssnaaake
my-python = pkgs.python311;
python-with-my-packages = my-python.withPackages
(p: with p; [
mkdocs-material
mkdocs-minify
pygments
]);
in 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";
buildInputs = [
python-with-my-packages
];
shellHook = ''
PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
'';
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
nix nix
home-manager home-manager
@ -45,7 +28,5 @@ pkgs.mkShell {
sops sops
pre-commit pre-commit
gitleaks gitleaks
mkdocs
mqttui
]; ];
} }