blob: 55e8ffdbf2048a96656d6dd12b9424d05d2a6e0d (
plain) (
blame)
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
|
{ pkgs, ... }:
{
services.nix-daemon.enable = true;
nix = {
package = pkgs.nixFlakes;
settings = {
experimental-features = [ "nix-command" "flakes" ];
};
};
# in order to install things like 1password's extensions
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
# Required for homebrew on aarch64
environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];
homebrew = {
enable = true;
onActivation.autoUpdate = true;
onActivation.upgrade = true;
brews = [
"aspell" # spelling
"kind" # to run local k8s cluster
"envoy" # to do some testing with envoy
];
taps = [
"homebrew/cask-fonts"
];
casks = [
"1password-cli"
"docker"
"element"
"emacs"
"font-monaspace" # https://github.com/githubnext/monaspace
"font-source-code-pro"
"iterm2"
"netnewswire"
"transmission"
"vlc"
"wireshark"
"zoom"
];
};
users.users.fcuny.home = "/Users/fcuny";
system.defaults.dock.autohide = true;
system.defaults.dock.orientation = "left";
system.defaults.dock.showhidden = false;
system.defaults.dock.show-recents = false;
# don’t rearrange spaces based on the most recent use
system.defaults.dock.mru-spaces = false;
system.defaults.finder.AppleShowAllExtensions = true;
system.defaults.screencapture.location = "~/Documents/screenshots";
system.defaults.CustomUserPreferences = {
"com.apple.desktopservices" = {
# Avoid creating .DS_Store files on network or USB volumes
DSDontWriteNetworkStores = true;
DSDontWriteUSBStores = true;
};
};
# Touch ID for sudo auth
security.pam.enableSudoTouchIdAuth = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.fcuny = import ../../home/darwin.nix;
}
|