mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 05:54:35 +00:00
Add default nix shell (for nix develop)
This commit is contained in:
parent
2dcd368572
commit
5580328f0a
|
@ -41,5 +41,6 @@
|
||||||
|
|
||||||
outputs = {self, nixpkgs, ...} @ inputs: {
|
outputs = {self, nixpkgs, ...} @ inputs: {
|
||||||
nixosConfigurations = import ./hosts {inherit inputs;};
|
nixosConfigurations = import ./hosts {inherit inputs;};
|
||||||
|
devShells = import ./shells {inherit inputs;};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
21
shells/default.nix
Normal file
21
shells/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{inputs, ...}: let
|
||||||
|
inherit (inputs) nixpkgs;
|
||||||
|
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
${system} = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
name = "nixdots";
|
||||||
|
meta.description = "The default development shell for my NixOS configuration";
|
||||||
|
packages = with pkgs; [
|
||||||
|
git # flakes require git
|
||||||
|
nil # nix ls
|
||||||
|
statix # lints and suggestions
|
||||||
|
deadnix # clean up unused nix code
|
||||||
|
alejandra # nix formatter
|
||||||
|
];
|
||||||
|
shellHook = "exec $SHELL";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue