-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
77 lines (70 loc) · 1.72 KB
/
default.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
{
inputs,
outputs,
secrets,
lib,
config,
pkgs,
...
}:
{
imports = [
../common/terminal/default-darwin.nix
../common/graphical/default-darwin.nix
../common/optional/k8s-utils.nix
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.stable-packages
];
config = {
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
home = {
username = lib.mkDefault "${secrets.hosts.work-mac.username}";
homeDirectory = lib.mkDefault "/Users/${secrets.hosts.work-mac.username}";
};
programs.git = {
userEmail = secrets.hosts.work-mac.email.long;
signing.signByDefault = false;
includes = [
{
condition = "gitdir:~/.nixos-configuration/";
contents = {
user = {
email = "[email protected]";
};
};
}
];
};
programs.home-manager.enable = true;
# Fish Additions
programs.fish = {
loginShellInit = ''for p in (string split " " $NIX_PROFILES); fish_add_path --prepend --move $p/bin; end'';
interactiveShellInit =
# fix brew path (should not be needed but somehow is?)
''
eval (/opt/homebrew/bin/brew shellenv)
''
+
# Add custom local paths
''
fish_add_path $HOME/.rd/bin
'';
};
# Alacritty Font Fixes
programs.alacritty.settings.font = {
normal.family = "Source Code Pro";
bold.family = "Source Code Pro";
italic.family = "Source Code Pro";
bold_italic.family = "Source Code Pro";
size = 16;
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "24.11";
}