-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
90 lines (78 loc) · 2.18 KB
/
default.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
{
config,
lib,
pkgs,
self,
system,
...
}: {
imports = [./homebrew.nix] ++ lib._.moduleImports ["common/nix" "common/packages"];
networking.hostName = "nyckelharpa";
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
environment.systemPackages = with pkgs; [
monitorcontrol
];
programs = {
# home-manager doesn't support gpg-agent service, so it needs to be enabled here
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Necessary here to set correct PATH, configuration managed by home-manager
zsh.enable = true;
};
users.users.${config.username}.home = "/Users/${config.username}";
security = {
# Add ability to use Touch ID for sudo
pam.enableSudoTouchIdAuth = true;
sudo.extraConfig = ''
Defaults timestamp_timeout=5
'';
};
system = {
defaults = {
dock = {
autohide-delay = 0.2;
mineffect = "scale";
persistent-apps = [
"/Applications/Arc.app"
"/Applications/RubyMine.app"
"/Applications/Cursor.app"
"/Applications/Zed.app"
"${config.users.users.${config.username}.home}/Applications/Home\ Manager\ Apps/kitty.app"
"/Applications/Notion.app"
"/Applications/Slack.app"
"/Applications/Obsidian.app"
"/Applications/Spotify.app"
"/Applications/WhatsApp.app"
];
show-recents = false;
};
loginwindow = {
DisableConsoleAccess = true;
GuestEnabled = false;
};
menuExtraClock = {
Show24Hour = true;
ShowDate = 0;
ShowDayOfWeek = true;
};
screensaver = {
askForPassword = true;
askForPasswordDelay = 60;
};
};
keyboard = {
enableKeyMapping = true;
nonUS.remapTilde = true;
};
# Set Git commit hash for darwin-version.
configurationRevision = self.rev or self.dirtyRev or null;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
stateVersion = 4;
};
# The platform the configuration will be used on.
nixpkgs.hostPlatform = system;
}