-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
68 lines (66 loc) · 2.13 KB
/
home.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
{ pkgs, ... }: {
# Home Manager needs a bit of information about you and the
# paths it should manage.
# home.username = "coder";
home = {
enableNixpkgsReleaseCheck = true;
stateVersion = "24.11";
packages = with pkgs; [
eza
bat
neovim
starship
htop
mise
awscli2
google-cloud-sdk
];
};
# Let Home Manager install and manage itself.
programs = {
home-manager = {
enable = true;
path = "$HOME/.config/nix-darwin/nixpkgs/";
};
git = {
enable = true;
userName = "Angel Ortiz";
userEmail = "[email protected]";
ignores = [ "**/.idea/" "**/.vscode/settings.json" "**/.direnv/" "**/.DS_Store" ];
};
zsh = {
enable = true;
autocd = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "eza -lF --color-scale --no-user --no-time --no-permissions --group-directories-first --icons -a";
ls = "eza -lF --group-directories-first --icons -a";
".." = "cd ..";
update-nix = "darwin-rebuild switch --flake ~/.config/nix-darwin";
};
history = {
save = 1;
size = 10000;
};
initExtra = ''
eval "$(starship init zsh)"
eval "$(/etc/profiles/per-user/coder/bin/mise activate zsh)"
if type gcloud &>/dev/null; then
source $(gcloud info --format="value(config.paths.bash_completion)" || true)
fi
'';
};
awscli = {
enable = true;
};
# environment = {
# variables = {
# GOOGLE_APPLICATION_CREDENTIALS = "/path/to/your-service-account-file.json";
# GCLOUD_PROJECT = "your-project-id";
# GCLOUD_REGION = "us-central1"; # Optional, change as necessary
# };
# };
};
}