This repository was archived by the owner on May 21, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathconfiguration.nix
More file actions
204 lines (191 loc) · 4.19 KB
/
Copy pathconfiguration.nix
File metadata and controls
204 lines (191 loc) · 4.19 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{ config, pkgs, ... }:
{
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep curl
environment.systemPackages = with pkgs; [
aria2
backblaze-b2
bat
btop
cargo
unstable.colima # TODO temp fix for deprecated lima
coreutils
curl
docker
dyff
fd
fzf
gh
ghstack
git
gnupg
go
imagemagick
inetutils
jq
k9s
kubectl
kubectl-tree
kubectx
kubernetes-helm
kustomize
markdown-oxide
mosh
unstable.neovim # TOOD back to stable once 0.12 is available
nnn
pinentry-tty
poppler-utils
python314
rbw
ripgrep
sapling
tmux
tree
unzip
uv
watch
yt-dlp
zk
zoxide
# Language servers
gopls
lua-language-server
nil
nodePackages.typescript-language-server
pyright
rust-analyzer
terraform-ls
# AI
unstable.opencode
unstable.codex
unstable.pi-coding-agent
unstable.mcp-grafana
unstable.agent-browser
(pass.withExtensions (ext: with ext; [
pass-import
pass-otp
]))
];
environment.systemPath = [
config.homebrew.brewPrefix # TODO https://github.com/LnL7/nix-darwin/issues/596
];
fonts = {
packages = with pkgs; [
nerd-fonts.fira-code
];
};
# Homebrew packages
homebrew = {
enable = true;
onActivation.cleanup = "zap";
taps = [
# { name = "homebrew/foobar"; }
];
brews = [
"ollama"
];
casks = [
"brave-browser"
"claude-code"
"handy"
"helium-browser"
"kitty"
"linearmouse"
"obsidian"
"secretive"
"utm"
"zen"
];
};
system.defaults = {
dock = {
autohide = true;
expose-group-apps = true;
minimize-to-application = true;
mru-spaces = false;
showhidden = true;
};
NSGlobalDomain = {
AppleInterfaceStyle = "Dark";
AppleKeyboardUIMode = 3;
ApplePressAndHoldEnabled = false;
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
};
CustomUserPreferences = {
"com.apple.Safari" = {
AlwaysRestoreSessionAtLaunch = true;
AutoOpenSafeDownloads = false;
EnableNarrowTabs = false;
IncludeDevelopMenu = true;
NeverUseBackgroundColorInToolbar = true;
ShowFullURLInSmartSearchField = true;
ShowOverlayStatusBar = true;
ShowStandaloneTabBar = false;
};
};
};
services = {
# TODO some machine have the driver blocked, needs to install from the web
# And Karabiner on nix-darwin is currently broken https://github.com/LnL7/nix-darwin/issues/1041
# karabiner-elements.enable = true;
tailscale.enable = true;
};
nix = {
# configureBuildUsers = true;
settings = {
experimental-features = [
"nix-command"
"flakes"
];
allowed-users = [
"@admin"
];
trusted-users = [
"@admin"
];
};
optimise = {
automatic = true;
};
linux-builder = {
enable = true;
ephemeral = true;
systems = ["aarch64-linux" "x86_64-linux"];
config = {
boot.binfmt.emulatedSystems = ["x86_64-linux"];
virtualisation = {
cores = 4;
darwin-builder = {
diskSize = 64 * 1024;
memorySize = 8 * 1024;
};
};
};
};
};
# Create /etc/zshrc that loads the nix-darwin environment.
programs = {
zsh = {
enable = true;
enableBashCompletion = false;
enableCompletion = false;
promptInit = "";
};
direnv = {
enable = true;
# TODO remove this workaround https://github.com/NixOS/nixpkgs/issues/507531
package = pkgs.direnv.overrideAttrs (_: {
doCheck = false;
});
silent = true;
};
};
security.pam.services.sudo_local.touchIdAuth = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 6;
}