-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.nix
68 lines (59 loc) · 2.23 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
# darwin-rebuild switch --flake ~/dotfiles
{ pkgs, config, lib, unstable, ... }: {
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = [ pkgs.vim pkgs.git pkgs.fish ];
environment.shells = [ pkgs.fish ];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# add the current version of pkgs to the search path,
# so that they consistently refer to the same thing (eg for `home-manager switch`)
nix.nixPath = [ ("nixpkgs=" + toString pkgs.path) ];
nix.settings = {
sandbox = true;
substituters =
[ "https://nix-community.cachix.org" "https://devenv.cachix.org" ];
trusted-public-keys = [
"emacs.cachix.org-1:b1SMJNLY/mZF6GxQE+eDBeps7WnkT0Po55TAyzwOxTY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
trusted-substituters = [
"https://cachix.org/api/v1/cache/emacs"
"https://cachix.org/api/v1/cache/nix-community"
];
};
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
programs.fish.enable = true;
users.users.jon = {
home = "/Users/jon";
# Sadly setting the shell doesn't work unless you're creating a new user.
# Use `chsh -s /run/current-system/sw/bin/fish` instead
shell = pkgs.fish;
};
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
system.defaults = {
CustomUserPreferences = {
# suppress crash popups, put them in Notification Center instead
"com.apple.CrashReporter" = { "UseUNC" = 1; };
};
};
security.pam.enableSudoTouchIdAuth = true;
homebrew = {
enable = true;
# Not actually using any homebrew packages right now
brews = [ ];
# Keep things deterministic.
onActivation.autoUpdate = false;
# Properly uninstall all things not managed by Nix homebrew.
onActivation.cleanup = "zap";
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit unstable; };
home-manager.users.jon = import ./home.nix;
}