-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.nix
45 lines (42 loc) · 953 Bytes
/
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
{
pkgs,
lib,
config,
...
}: {
enterShell = ''
echo
echo 🦾 Useful project scripts:
echo 🦾
${pkgs.gnused}/bin/sed -e 's| |••|g' -e 's|=| |' <<EOF | ${pkgs.util-linuxMinimal}/bin/column -t | ${pkgs.gnused}/bin/sed -e 's|^|🦾 |' -e 's|••| |g'
${lib.generators.toKeyValue {} (lib.mapAttrs (_: value: value.description) config.scripts)}
EOF
echo
'';
packages = with pkgs; [
gitleaks
];
pre-commit.hooks = {
shellcheck.enable = true;
markdownlint = {
enable = true;
settings.configuration = {
MD045 = false; # no-alt-line
MD033 = {
allowed_elements = [
"p"
"img"
];
};
MD013 = {
line_length = 360;
};
};
};
gitleaks = {
enable = true;
name = "gitleaks";
entry = "${pkgs.gitleaks}/bin/gitleaks protect --verbose --redact --staged";
};
};
}