-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdarwin-configuration.nix
72 lines (58 loc) · 1.39 KB
/
darwin-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
{ config, lib, pkgs, ... }:
{
imports = [ <home-manager/nix-darwin> ];
environment.variables = {
EDITOR = "vim";
};
environment.shells = [ pkgs.fish ];
environment.systemPackages =
[
pkgs.vim
pkgs.fish
pkgs.zsh
pkgs.git
pkgs.nixpkgs-fmt
# pkgs.qmk
];
environment.etc = {
hosts = {
enable = true;
text =
''
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
'';
};
};
users.users.casey = {
name = "casey";
home = "/Users/casey";
shell = pkgs.fish;
};
home-manager.users.casey = import ./home-manager.nix;
home-manager.useGlobalPkgs = true;
homebrew = import ./homebrew.nix;
fonts.packages = [
pkgs.fira-code
pkgs.nerdfonts
pkgs.google-fonts
pkgs.font-awesome
];
# Auto upgrade nix package and the daemon service
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# Use nix-darwin environment w/ installed shells
programs.zsh.enable = true;
programs.fish.enable = true;
# Used for backwards compatibility, please read the changelog before changing
# $ darwin-rebuild changelog
system.stateVersion = 4;
nix.extraOptions =
''
keep-outputs = true
extra-platforms = x86_64-darwin
trusted-users = root casey
extra-experimental-features = nix-command
'';
}