-
Notifications
You must be signed in to change notification settings - Fork 0
/
.nixd.nix
43 lines (38 loc) · 1.14 KB
/
.nixd.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
# SPDX-FileCopyrightText: 2023 Connor Feeley
#
# SPDX-License-Identifier: BSD-3-Clause
# Create .nixd.json file with:
# nix eval --json --file .nixd.nix > .nixd.json
{
eval = {
# Example target for writing a package.
# target = {
# args = [ "--expr" "with import <nixpkgs> { }; callPackage ./default.nix { }" ];
# installable = "";
# };
# Example target for system (using flake-compat)
target = {
args = [ "-f" "default.nix" ];
installable = "nixosConfigurations.workstation";
};
# Force thunks
depth = 10;
# Specify number of threads to use. Default: std::thread::hardware_concurrency()
# workers = 5;
};
formatting.command = "nixpkgs-fmt";
# Specify which option set to use.
options = {
enable = true;
target = {
args = [ ];
# Example installable for flake-parts, nixos, and home-manager
# flake-parts
# installable = "/flakeref#debug.options";
# nixOS configuration
installable = ".#nixosConfigurations.workstation.options";
# home-manager configuration
# installable = "/flakeref#homeConfigurations.cfeeley.options";
};
};
}