mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake: make default devshell work for traditional nix-shell
This commit is contained in:
parent
5e7481b898
commit
cd456823f3
@ -31,7 +31,14 @@
|
||||
# more preferable than installing all of the packages at the system
|
||||
# configuration (or even home environment).
|
||||
devShells = import ../../shells { inherit pkgs; } // {
|
||||
default = import ../../shell.nix { inherit pkgs; };
|
||||
default = import ../../shell.nix {
|
||||
inherit pkgs;
|
||||
extraPackages = with pkgs; [
|
||||
# Mozilla addons-specific tooling. Unfortunately, only available with
|
||||
# flakes-based setups.
|
||||
nur.repos.rycee.mozilla-addons-to-nix
|
||||
];
|
||||
};
|
||||
docs = import ../../docs/shell.nix { inherit pkgs; };
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
{ pkgs ? import <nixpkgs> { }, extraPackages ? [ ] }:
|
||||
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
@ -26,8 +26,5 @@ pkgs.mkShell {
|
||||
stylua # ...for Lua.
|
||||
black # ...for Python.
|
||||
nixpkgs-fmt # ...for Nix.
|
||||
|
||||
# Mozilla addons-specific tooling.
|
||||
nur.repos.rycee.mozilla-addons-to-nix
|
||||
];
|
||||
] ++ extraPackages;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user