-
Notifications
You must be signed in to change notification settings - Fork 0
/
nix.nix
76 lines (63 loc) · 2.02 KB
/
nix.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
config,
lib,
modulesPath,
options,
pkgs,
specialArgs,
}:
{
# We'll live dangerously.
nix.package = pkgs.nixVersions.latest;
# Let's try having a small set of build machines.
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "selene.tail0e0e4.ts.net";
protocol = "ssh-ng";
system = "x86_64-darwin";
}
{
hostName = "vesper.tail0e0e4.ts.net";
protocol = "ssh-ng";
system = "aarch64-darwin";
}
];
nix.settings.experimental-features = [
# Enable the new nix subcommands. See the manual on nix for details.
# https://nixos.org/manual/nix/unstable/contributing/experimental-features#xp-feature-nix-command
"nix-command"
# Enable flakes. See the manual entry for nix flake for details.
# https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake
"flakes"
];
environment.systemPackages = with pkgs; [
# `nixdoc` is used to generate reference documentation for functions defined in Nixpkgs' lib.
# https://github.com/nix-community/nixdoc/
nixdoc
# `nix-bisect` helps bisect failing things in nixpkgs
# https://github.com/timokau/nix-bisect
nix-bisect
# `nix-diff` shows why derivations differ.
# https://github.com/Gabriella439/nix-diff
nix-diff
# `nix-doc` helps navigating nixpkgs and other Nix code.
# https://github.com/lf-/nix-doc
nix-doc
# `nix-output-monitor` is a fancy shell that makes nix-build much prettier.
# https://github.com/maralorn/nix-output-monitor
nix-output-monitor
# Interactively browse a Nix store paths dependencies
# https://hackage.haskell.org/package/nix-tree
nix-tree
# A files database for nixpkgs
# https://github.com/nix-community/nix-index
nix-index
# `nixfmt` is the work-in-progress RFC 166 linter.
# https://github.com/piegamesde/nixfmt/tree/rfc101-style
nixfmt-rfc-style
# `nurl` generates Nix fetcher calls from repository URLs
# https://github.com/nix-community/nurl
nurl
];
}