-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin.nix
96 lines (93 loc) · 2.41 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
{ config, pkgs, ... }@args:
let
username = args.specialArgs.username;
in
{
services.nix-daemon.enable = true;
# zsh is the default shell on Mac and we want to make sure that we're
# configuring the rc correctly with nix-darwin paths.
programs.zsh.enable = true;
programs.zsh.shellInit = ''
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
'';
environment.shells = with pkgs; [ bashInteractive zsh ];
homebrew = {
enable = true;
casks = [
"arc"
"cameracontroller"
"google-japanese-ime"
"meetingbar"
"monitorcontrol"
"logseq"
"karabiner-elements"
"keybase"
"raycast"
"scroll-reverser"
"spotify"
"todoist"
];
masApps = {};
onActivation = {
cleanup = "zap";
};
};
users.users.${username} = {
home = "/Users/${username}";
shell = pkgs.zsh;
};
time.timeZone = "Asia/Tokyo";
system = {
stateVersion = 4;
defaults = {
LaunchServices.LSQuarantine = false;
NSGlobalDomain = {
AppleICUForce24HourTime = true;
AppleInterfaceStyle = "Dark";
AppleInterfaceStyleSwitchesAutomatically = false;
AppleMeasurementUnits = "Centimeters";
ApplePressAndHoldEnabled = false;
AppleShowAllExtensions = true;
AppleShowScrollBars = "WhenScrolling";
AppleTemperatureUnit = "Celsius";
InitialKeyRepeat = 15;
KeyRepeat = 1;
NSWindowResizeTime = 0.001;
"com.apple.mouse.tapBehavior" = 1;
"com.apple.sound.beep.volume" = 0.0;
"com.apple.sound.beep.feedback" = 0;
"com.apple.trackpad.enableSecondaryClick" = true;
};
dock = {
autohide = false;
show-recents = false;
launchanim = true;
mouse-over-hilite-stack = true;
orientation = "left";
tilesize = 48;
largesize = 80;
magnification = true;
persistent-apps = [
"/Applications/Arc.app"
"/Applications/Slack.app"
"/Applications/Spotify.app"
];
};
finder = {
_FXShowPosixPathInTitle = false;
};
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
};
};
keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
};
};
}