-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
161 lines (150 loc) · 4.29 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "alberto";
home.homeDirectory = "/home/alberto";
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [
pkgs.hello
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
qt = {
enable = true;
platformTheme = {
name = "adwaita";
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting = {
enable = true;
};
shellAliases = {
l = "eza -l --icons --git --sort=Extension";
v = "nvim";
q = "exit";
cd = "z";
vol = "amixer set Master";
shell = "neofetch && nix develop --command zsh";
update = "sudo nixos-rebuild switch --flake ~/nixos/#nixos-config";
};
history = {
size = 10000;
};
};
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
programs.git = {
enable = true;
userName = "albertomolinfelipe";
userEmail = "[email protected]";
};
programs.starship.enable = true;
programs.starship.settings = {
format="$directory$git_branch$git_commit$git_state$git_metrics$git_status$kotlin$rust$nix_shell$character";
git_branch = {
symbol = "";
format = "[$symbol $branch(:$remote_branch)]($style) ";
style = "bright-yellow";
};
character = {
success_symbol = "[❯](bold #dd8b4f)";
};
git_metrics = {
disabled = false;
};
directory = {
format = " [$path]($style) ";
style = "bold blue";
truncation_length = 2;
truncate_to_repo = false;
truncation_symbol="../";
};
kotlin = {
format = "[$symbol]($style) ";
symbol = " ";
style = "#3ddc84";
};
rust = {
format = "[$symbol]($style) ";
symbol = "";
};
nix_shell = {
format = "($style) ";
};
aws = {disabled = true;};
};
programs.alacritty = {
enable = true;
settings = {
window = {
title = "alacritty";
opacity = 0.85;
};
font = {
normal.family = "HackNerdFont";
size = 12.0;
};
colors = {
primary = {
background = "#181820"; # sumInk1
foreground = "#DCD7BA"; # fujiWhite
};
normal = {
black = "#16161D"; # sumiInk0
red = "#C34043"; # autumnRed
green = "#76946A"; # autumnGreen
yellow = "#C0A36E"; # boatYellow2
blue = "#7E9CD8"; # crystalBlue
magenta = "#957FB8"; # oniViolet
cyan = "#6A9589"; # waveAqua1
white = "#C8C093"; # oldWhite
};
bright = {
black = "#727169"; # fujiGray
red = "#E82424"; # samuraiRed
green = "#98BB6C"; # springGreen
yellow = "#E6C384"; # carpYellow
blue = "#7FB4CA"; # springBlue
magenta = "#938AA9"; # springViolet1
cyan = "#7AA89F"; # waveAquea2
white = "#DCD7BA"; # fujiWhite
};
};
};
};
programs.home-manager.enable = true;
}