Skip to content

Commit 45ffb87

Browse files
committed
move devShells to its own module
1 parent d134fe4 commit 45ffb87

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

devShells/flake-module.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
perSystem =
3+
{ pkgs, ... }:
4+
{
5+
devShells.default = pkgs.mkShell {
6+
packages = [
7+
pkgs.bashInteractive
8+
pkgs.mypy
9+
pkgs.ruff
10+
];
11+
};
12+
};
13+
}

flake.nix

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
{
2929
imports =
3030
[
31+
./devShells/flake-module.nix
3132
./nixosModules/flake-module.nix
3233
./nix/checks/flake-module.nix
3334
]
@@ -57,7 +58,6 @@
5758
];
5859

5960
flake = {
60-
6161
nixosConfigurations =
6262
let
6363
examplesFor =
@@ -82,13 +82,6 @@
8282
{
8383
packages =
8484
{
85-
default = pkgs.mkShell {
86-
packages = [
87-
pkgs.bashInteractive
88-
pkgs.mypy
89-
pkgs.ruff
90-
];
91-
};
9285
# useful for checking what buildbot version is used.
9386
buildbot = pkgs.buildbot;
9487
buildbot-nix = pkgs.python3.pkgs.callPackage ./nix/buildbot-nix.nix { };

0 commit comments

Comments
 (0)