-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.nix
74 lines (72 loc) · 2.34 KB
/
config.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
{
build = {
dev = false; # true, to skip Haskell.nix build for a faster dev cycle
};
infrastructure = {
hackage.version = {
apply-refact = "latest";
fast-tags = "latest";
ghc-events = "latest";
ghcid = "latest";
haskdogs = "latest";
hasktags = "latest";
hlint = "latest";
hoogle = "latest";
hp2pretty = "latest";
stylish-haskell = "latest";
threadscope = "latest";
};
haskell-nix = {
checkMaterialization = false;
platformSensitive = [
"ghcid"
];
# DESIGN: https://github.com/input-output-hk/hackage.nix/blob/master/index-state-hashes.nix
hackage.index = {
state = "2024-12-29T00:00:00Z";
sha256 = "b68faed67cd52bf7cddb6071f31fe544e0a30506285b990cd648e061e256ccf0";
};
nixpkgs-pin = "nixpkgs-unstable";
};
nixpkgs = {
allowUnfree = true;
};
};
# Options for nixos-rebuild, darwin-rebuild, home-manager provisioning
provision = {
# Which version of Nixpkgs passed to NixOS-style modules as 'pkgs'.
# Specific versions are specificed in external/sources.json.
# Options:
# - "stable-darwin": nixpkgs-$RELEASE_VERSION-darwin
# - "stable-linux": nixos-$RELEASE_VERSION
# - "unstable": nixpkgs-unstable
pkgs = {
system = {
darwin = "stable-darwin";
linux = "stable-linux";
};
home = {
darwin = "unstable";
linux = "unstable";
};
};
user = {
bagel = rec {
homeDirectory = "/Users/${username}";
username = "shajra";
};
cake = rec {
homeDirectory = "/home/${username}";
username = "tnks";
};
lemon = rec {
homeDirectory = "/Users/${username}";
username = "tnks";
};
shajra = rec {
homeDirectory = "/home/${username}";
username = "shajra";
};
};
};
}