-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (59 loc) · 1.44 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
description = "init - Generating development environments";
inputs = {
devenv.url = "github:cachix/devenv";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
devenv,
flake-utils,
nixpkgs,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells = {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({
pkgs,
config,
...
}: {
enterShell = ''
printf "\033[0;1;36m
_ _ __
(_)__ (_) /_
/ / _ \/ / __/
/_/_//_/_/\__/
DEVSHELL ACTIVATED\033[0m\n"
'';
languages = {
python.enable = true;
nix.enable = true;
shell.enable = true;
};
packages = with pkgs; [
bash
black
pyright
commitizen
];
scripts = {
};
services = {
};
})
];
};
};
formatter = pkgs.alejandra;
packages = {
devenv-up = self.devShells.${system}.default.config.procfileScript;
};
});
}