-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.nix
54 lines (38 loc) · 1.19 KB
/
settings.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
# Repo wide settings
{ lib, flake-parts-lib, inputs, ... }: {
options = {
perSystem = flake-parts-lib.mkPerSystemOption
({ pkgs, system, config, ... }: {
options.settings = {
shell = {
tools = lib.mkOption {
type = lib.types.listOf lib.types.package;
description = "Tools to include in all devShells";
};
hook = lib.mkOption {
type = lib.types.str;
description = "Shell script to invoke in all devShells";
};
};
};
config = {
settings = {
shell = {
tools = [
pkgs.nil
inputs.pre-commit-hooks.outputs.packages.${system}.deadnix
inputs.pre-commit-hooks.outputs.packages.${system}.nixpkgs-fmt
inputs.pre-commit-hooks.outputs.packages.${system}.shellcheck
];
hook = ''
export LC_CTYPE=C.UTF-8;
export LC_ALL=C.UTF-8;
export LANG=C.UTF-8;
${config.pre-commit.installationScript}
'';
};
};
};
});
};
}