-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
47 lines (47 loc) · 1.05 KB
/
devenv.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
_: {
perSystem = { pkgs, config, ... }: {
treefmt.config = {
projectRootFile = "flake.nix";
programs = {
nixpkgs-fmt.enable = true;
deadnix.enable = true;
};
};
formatter = config.treefmt.build.wrapper;
devenv.shells = {
default = {
name = "sysconf-dev";
packages = with pkgs; [
config.treefmt.build.wrapper
git
helix
nixVersions.latest
just
sops
nh
];
env.FLAKE = ./.;
languages = {
nix.enable = true;
};
pre-commit.hooks = {
editorconfig-checker.enable = true;
markdownlint = {
enable = true;
settings.configuration = {
"MD013" = {
"line_length" = 120;
};
};
};
nil.enable = true;
statix.enable = true;
treefmt = {
enable = true;
package = config.treefmt.build.wrapper;
};
};
};
};
};
}