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
{
config,
systemConfig,
lib,
pkgs,
...
}:
{
options.zaphyra.languages.nix.enable = lib.mkOption {
type = lib.types.bool;
default = systemConfig.modules.presets.graphical.enable;
};
config = lib.mkIf config.zaphyra.languages.nix.enable {
home.packages = with pkgs; [
deadnix
nixfmt-rfc-style
nixfmt-tree
statix
];
programs = {
helix.extraPackages = [
pkgs.nixd
pkgs.nil
];
micro.lsp-servers.nix = {
command = lib.getExe pkgs.nixd;
options = {
config = builtins.toJSON {
formatting.command = [ (lib.getExe pkgs.nixfmt-rfc-style) ];
};
};
};
};
};
}