-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin.nix
49 lines (44 loc) · 1.49 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
{ 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;
};
};
########################################
# Auto install software updates
########################################
system.activationScripts.extraActivation.text = ''
softwareupdate --all --download --background
'';
}