-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdarwin-common.nix
47 lines (45 loc) · 1.83 KB
/
darwin-common.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
{ config, pkgs, inputs, ... }: {
programs.zsh.enable = true;
environment.pathsToLink = [ "/share/zsh" ];
services.nix-daemon.enable = true;
nix.settings.cores = 0; # use all cores
nix.settings.max-jobs = 10; # use all cores
nix.settings.experimental-features = [ "nix-command" "flakes" ];
security.pam.enableSudoTouchIdAuth = true;
programs.zsh.shellInit = ''
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];
#nix.settings.auto-optimise-store = true;
nix.distributedBuilds = true;
nix.nixPath = [{ nixpkgs = "${inputs.nixpkgs-darwin.outPath}"; nixpkgs-master = "${inputs.nixpkgs-master.outPath}"; nixpkgs-nixos = "${inputs.nixpkgs.outPath}"; }];
nix.buildMachines = [{
systems = [ "x86_64-linux" ];
supportedFeatures = [ "kvm" "big-parallel" ];
sshUser = "ragon";
maxJobs = 12;
hostName = "ds9";
sshKey = "/Users/xyno/.ssh/id_ed25519";
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUorQkJYdWZYQUpoeVVIVmZocWxrOFk0ekVLSmJLWGdKUXZzZEU0ODJscFYgcm9vdEBpc28K";
}];
nix.extraOptions = ''
builders-use-substitutes = true
'';
system.defaults = {
NSGlobalDomain.AppleShowAllExtensions = true;
NSGlobalDomain.InitialKeyRepeat = 25;
NSGlobalDomain.KeyRepeat = 4;
NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
NSGlobalDomain.PMPrintingExpandedStateForPrint = true;
NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = 1;
dock.autohide = true;
dock.mru-spaces = false;
dock.show-recents = false;
dock.static-only = true;
dock.expose-animation-duration = 0.01;
finder.AppleShowAllExtensions = true;
finder.FXEnableExtensionChangeWarning = false;
loginwindow.GuestEnabled = false;
};
}