-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
83 lines (66 loc) · 2.48 KB
/
configuration.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
{ lib, pkgs, ... }: {
imports = [ ];
config = {
nixpkgs.config = {
allowUnfree = true;
};
environment = {
systemPackages = [
pkgs.colima
pkgs.docker
];
shells = [ pkgs.zsh ];
loginShell = "${pkgs.zsh}/bin/zsh -l";
variables = {
SHELL = "${pkgs.zsh}/bin/zsh";
LANG = "en_US.UTF-8";
};
};
nix.package = pkgs.nixVersions.latest;
nix.settings = {
sandbox = true;
extra-sandbox-paths = [ "/private/tmp" "/private/var/tmp" "/usr/bin/env" ];
};
nix.extraOptions = ''
keep-derivations = true
keep-outputs = true
experimental-features = nix-command flakes
'';
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.defaults.NSGlobalDomain.InitialKeyRepeat = 12;
system.defaults.NSGlobalDomain.KeyRepeat = 1;
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" = -1.0;
system.defaults.dock.autohide = true;
system.defaults.dock.mru-spaces = false;
system.defaults.dock.wvous-tl-corner = 1; # Disabled
system.defaults.dock.wvous-tr-corner = 1;
system.defaults.dock.wvous-bl-corner = 1;
system.defaults.dock.wvous-br-corner = 1;
system.defaults.NSGlobalDomain._HIHideMenuBar = false;
system.defaults.finder.AppleShowAllExtensions = true;
system.defaults.finder.CreateDesktop = false;
system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToControl = true;
fonts.packages = [
pkgs.hack-font
];
programs.zsh = {
enable = true;
# Using oh-my-zsh for theming instead
promptInit = "";
};
# Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
};
}