-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
78 lines (65 loc) · 2.09 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
{ pkgs, lib, ... }:
{
# Nix configuration ------------------------------------------------------------------------------
nix.settings.substituters = [
"https://cache.nixos.org/"
];
nix.settings.trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
nix.settings.trusted-users = [
"@admin"
];
nix.configureBuildUsers = true;
# Enable experimental nix command and flakes
# nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
auto-optimise-store = false
# allowUnsupportedSystem = true
experimental-features = nix-command flakes
'' + lib.optionalString (pkgs.system == "aarch64-darwin") ''
extra-platforms = x86_64-darwin aarch64-darwin
'';
environment.shells = with pkgs; [
bashInteractive
fish
zsh
];
# Create /etc/bashrc that loads the nix-darwin environment.
programs.zsh.enable = true;
programs.fish.enable = true;
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# Apps
# `home-manager` currently has issues adding them to `~/Applications`
# Issue: https://github.com/nix-community/home-manager/issues/1341
environment.systemPackages = with pkgs; [
hello
cowsay
python311
];
# https://github.com/nix-community/home-manager/issues/423
environment.variables = {
# TERMINFO_DIRS = "${pkgs.kitty.terminfo.outPath}/share/terminfo";
};
programs.nix-index.enable = true;
# Fonts
fonts.fontDir.enable = true;
fonts.fonts = with pkgs; [
recursive
(nerdfonts.override { fonts = [ "JetBrainsMono" "FiraCode" "FiraMono"]; })
fira-code
# nerdfonts
];
# Keyboard
system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToControl = true;
# Add ability to used TouchID for sudo authentication
security.pam.enableSudoTouchIdAuth = true;
# Do not set the name attribute or else it will screw up any evals of config.home.profileDirectory
# by putting your whole name into /etc/profiles/per-user/Chris Handy/bin
users.users.chandy = {
home = "/Users/chandy";
shell = pkgs.fish;
};
}