-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefaults.nix
74 lines (70 loc) · 1.99 KB
/
defaults.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
{ config, pkgs, ... }:
{
#package config
nix.package = pkgs.nix;
nixpkgs.config.allowUnfree = true;
services.activate-system.enable = true;
services.nix-daemon.enable = true;
programs.nix-index.enable = true;
# add nerd fonts
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "Hack" "DroidSansMono" "Iosevka" ]; })
];
#system-defaults.nix
system.keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
};
system.defaults = {
dock = {
autohide = true;
orientation = "bottom";
showhidden = true;
mineffect = "genie";
launchanim = true;
show-process-indicators = true;
tilesize = 48;
static-only = true;
mru-spaces = false;
show-recents = false;
};
finder = {
AppleShowAllExtensions = true;
FXEnableExtensionChangeWarning = false;
CreateDesktop = false; # disable desktop icons
};
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
Dragging = true;
};
# Apple firewall config: block all incoming connections and enable stealth mode
alf = {
globalstate = 2;
loggingenabled = 0;
stealthenabled = 1;
};
loginwindow = {
GuestEnabled = false;
DisableConsoleAccess = true;
};
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
NSGlobalDomain = {
AppleInterfaceStyle = "Dark"; # set dark mode
AppleKeyboardUIMode = 3;
ApplePressAndHoldEnabled = false;
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
_HIHideMenuBar = true; # autohide top panel
};
};
# Add flake support
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
}