-
Notifications
You must be signed in to change notification settings - Fork 2
/
nix-ide.nix
35 lines (34 loc) · 964 Bytes
/
nix-ide.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
topLevel@{ inputs, flake-parts-lib, ... }: {
imports = [
./devcontainer.nix
./nix-ld.nix
./vscode.nix
inputs.flake-parts.flakeModules.flakeModules
];
flake.flakeModules.nixIde = {
imports = [
topLevel.config.flake.flakeModules.devcontainer
topLevel.config.flake.flakeModules.nixLd
topLevel.config.flake.flakeModules.vscode
];
options.perSystem = flake-parts-lib.mkPerSystemOption ({ config, pkgs, lib, system, ... }: {
ml-ops.devcontainer = {
nixago.requests = {
".vscode/settings.json".data = {
"nix.enableLanguageServer" = true;
};
".vscode/extensions.json".data = {
"recommendations" = [
"jnoortheen.nix-ide"
"mkhl.direnv"
];
};
};
devenvShellModule = {
packages = lib.mkAfter [ pkgs.rnix-lsp ];
};
};
# TODO: Other IDE settings
});
};
}