forked from nikitavoloboev/ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin.nix
41 lines (33 loc) · 1.21 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
{ config, pkgs, ... }:
{
# Global packages. Other packages: https://github.com/nikitavoloboev/dotfiles/blob/master/.install.conf.yaml#L17
environment.systemPackages =
[
pkgs.texlive.combined.scheme-full
pkgs.nix
pkgs.wifi-password
];
# TODO: remove & test more
#nixpkgs.overlays = [(import ../../src/clones/overlay-example/overlay.nix)];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
programs.zsh.enableCompletion = false;
programs.zsh.enable = true;
programs.zsh.promptInit = "";
nix.nixPath = [
"darwin-config=$HOME/.dotfiles/nix/darwin.nix"
"nixpkgs=$HOME/src/clones/nixpkgs"
"$HOME/.nix-defexpr/channels"
];
# Extend PATH
environment.systemPath = [ "/usr/local/go/bin:/usr/local/MacGPG2/bin" ];
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 3;
# Generally set to total number of logical cores on the system. $(sysctl -n hw.ncpu)
nix.maxJobs = 12;
# Can cause instability in builds if more than 1
nix.buildCores = 1;
# TODO: create ~/.hushlogin file to supress login msg on new terminal sessions
}