-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin-configuration.nix
201 lines (179 loc) · 4.22 KB
/
darwin-configuration.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
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
{ config, pkgs, ... }:
let
tex = (pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-medium dvisvgm dvipng enumitem xifthen ifmtarg academicons multirow
fontawesome fontawesome5 sourcesanspro sourcecodepro inconsolata tcolorbox
environ trimspaces wrapfig amsmath ulem hyperref capt-of tikzfill moderncv
arydshln;
#(setq org-latex-compiler "lualatex")
#(setq org-preview-latex-default-process 'dvisvgm)
});
in {
# List packages installed in system profile.
# allow the unfree stuff
nixpkgs.config.allowUnsupportedSystem = true;
nixpkgs.config.allowUnfree = true;
nix = {
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
home-manager.useUserPackages = true;
# System packages
environment.systemPackages = with pkgs; [
# Applications
alacritty
bat
black
clang
cmake
ditaa
direnv
djlint
docker
docker-compose
docker-compose-language-service
editorconfig-core-c
fd
gcc
git
gimp
glib
gnumake
google-cloud-sdk
guile
nix-direnv
html-tidy
inkscape
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science ]))
ispell
jq
libgccjit
lima
mark
nasm
nixd
nodejs
nodePackages.bash-language-server
nodePackages.eslint
nodePackages.prettier
nodePackages.js-beautify
nodePackages_latest.pnpm
nodePackages.stylelint
nodePackages_latest.ts-node
nodePackages.svgo
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
pandoc
postgresql
python311
python311Packages.debugpy
python311Packages.isort
python311Packages.mypy
python311Packages.rope
python311Packages.ruff
python311Packages.pyflakes
python311Packages.pylsp-mypy
pipx
qemu
roswell
ruff-lsp
sbcl
shellcheck
shfmt
sketchybar
slack
spotify
stripe-cli
syncthing
terraform
tex
tree-sitter
utm
virt-viewer
wget
wkhtmltopdf-bin
yamlfmt
yaml-language-server
yarn
zellij
zsh
zsh-powerlevel10k
#fonts
fira-mono
font-awesome
font-awesome_5
material-design-icons
noto-fonts
noto-fonts-emoji
nerd-fonts.terminess-ttf
victor-mono
];
# Auto upgrade nix package and the daemon service.eg
services = {
# emacs = {
# enable = true;
# package = pkgs.emacs;
# };
nix-daemon.enable = true;
sketchybar = {
enable = true;
package = pkgs.sketchybar;
};
tailscale = {
enable = true;
package = pkgs.tailscale;
};
};
# System State Version
system = {
activationScripts.postUserActivation.text = ''
# Following line should allow us to avoid a logout/login cycle
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
stateVersion = 5;
defaults = {
dock = {
autohide = true;
autohide-delay = 0.0;
autohide-time-modifier = 0.2;
expose-animation-duration = 0.2;
show-recents = false;
launchanim = false;
static-only = false;
mouse-over-hilite-stack = true;
orientation = "bottom";
tilesize = 36;
mru-spaces = false;
persistent-apps =
[
"${pkgs.emacs29-macport}/Applications/Emacs.app"
"${pkgs.slack}/Applications/Slack.app"
];
persistent-others = [ "/Users/martin.brignall/projects" ];
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
FXPreferredViewStyle = "clmv";
ShowPathbar = true;
ShowStatusBar = true;
_FXShowPosixPathInTitle = false;
_FXSortFoldersFirst = true;
};
NSGlobalDomain = {
AppleKeyboardUIMode = 3;
ApplePressAndHoldEnabled = false;
KeyRepeat = 1;
InitialKeyRepeat = 18;
"com.apple.sound.beep.volume" = 0.000;
_HIHideMenuBar = true;
NSWindowResizeTime = 0.001;
NSTableViewDefaultSizeMode = 1;
};
};
};
programs.zsh.enable = true;
}