-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin.nix
130 lines (123 loc) · 3.18 KB
/
darwin.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
{ system, pkgs, ... }: {
########################################
# Requires for nix-darwin to work
########################################
system.stateVersion = 4;
nixpkgs.hostPlatform = system;
# REQUIRED: To keep-enabled experimental features after installation, since nix is managed by nix-darwin.
nix.settings.experimental-features = "nix-command flakes";
# REQUIRED: Because this dotfiles is intended for a nix-darwin multi-user environment.
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# REQUIRED: Create /etc/fish that loads the nix-darwin environment.
programs.fish.enable = true;
########################################
# Configuration for macOS system
########################################
system.defaults = {
finder = {
AppleShowAllExtensions = true;
CreateDesktop = true;
FXDefaultSearchScope = "SCcf";
FXEnableExtensionChangeWarning = false;
FXPreferredViewStyle = "Nlsv";
ShowPathbar = true;
ShowStatusBar = false;
};
dock = {
autohide = true;
show-recents = false;
tilesize = 50;
magnification = true;
largesize = 64;
orientation = "bottom";
launchanim = false;
};
};
########################################
# Homebrew
########################################
homebrew = {
enable = true;
onActivation.autoUpdate = true;
taps = [
"homebrew/bundle"
"homebrew/cask-fonts"
"homebrew/cask-versions"
"homebrew/core"
"homebrew/services"
"jorgelbg/tap"
"mtgto/macskk"
"macos-fuse-t/homebrew-cask"
];
brews = [
"openssl@3"
"gettext"
"iconsur"
"libgpg-error"
"mas"
"mise"
"p7zip"
"pinentry-mac"
"pkgconf"
"jorgelbg/tap/pinentry-touchid"
];
casks = [
"alt-tab"
"android-studio"
"anki"
"battery"
"brave-browser"
"chatgpt"
"devtoys"
"discord"
"figma"
"gnucash"
"inkscape"
"keepassxc"
"keybase"
"macfuse"
"macskk"
"microsoft-auto-update"
"microsoft-teams"
"musicbrainz-picard"
"obsidian"
"orbstack"
"piphero"
"postman"
"slack"
"visual-studio-code"
"vlc"
"wezterm@nightly"
"zoom"
];
masApps = {
"1Blocker" = 1365531024;
"Amphetamine" = 937984704;
"Compressor" = 424390742;
"Final Cut Pro" = 424389933;
"Goodnotes" = 1444383602;
"Keynote" = 409183694;
"LINE" = 539883307;
"Logic Pro" = 634148309;
"MainStage" = 634159523;
"Mona" = 1659154653;
"Motion" = 434290957;
"Numbers" = 409203825;
"OmniFocus" = 1542143627;
"Pages" = 409201541;
"RunCat" = 1429033973;
"Shortcut Notch" = 6447055708;
"Xcode" = 497799835;
"タイピスト" = 415166115;
"宛名印刷" = 1598123076;
};
};
########################################
# Auto install software updates
########################################
system.activationScripts.extraActivation.text = ''
softwareupdate --all --download --background
'';
}