blob: fb773048512e7cc93e629b3a367869c0b9f4942c (
plain)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
{
config,
pkgs,
lib,
...
}:
let
inherit (lib)
mkIf
mkOption
mkEnableOption
types
mdDoc
lists
;
cfg = config.custom.hyprdesktop;
in
{
imports = [ ../home/minimal.nix ];
options.custom.hyprdesktop = {
enable = mkEnableOption "Enable hyprdesktop";
mainUser = mkOption {
type = types.str;
example = "alice";
description = mdDoc "Main superuser's username.";
};
hasBluetooth = mkOption {
type = types.bool;
default = false;
example = "true";
};
hasBrightnessCtl = mkOption {
type = types.bool;
default = false;
example = "true";
};
hasBattery = mkOption {
type = types.bool;
default = false;
example = "true";
};
enableGaming = mkOption {
type = types.bool;
default = false;
example = "true";
};
enableWindowsCompat = mkOption {
type = types.bool;
default = false;
example = "true";
};
enableGitAnnex = mkOption {
type = types.bool;
default = true;
example = "false";
};
};
config = mkIf cfg.enable {
wayland.windowManager.hyprland.enable = true;
home.packages =
with pkgs;
[
wireplumber # session & policy manager for pipewire
grim # screenshot utility for wayland
slurp # region selection UI for wayland
wl-clipboard # clipboard utility
sl
jaq # json query tool
mullvad
# tools for dealing with all sorts archives
atool
zip
unzip
gnutar
unrar-wrapper
gzip
# other random CLI's
fzf
wget
xdg-utils
yazi # TUI file manager
pandoc
(pass-nodmenu.withExtensions (exts: [ exts.pass-otp ]))
# Developer stuff
git
gitui
scheme-manpages
guile
# TUI/GUI programs
thunderbird # email client
aerc # email client
nsxiv # image viewer
signal-desktop
whatsapp-for-linux
qbittorrent # bittorrent client
zathura # document reader
foliate
nyxt
# Other
# It seems that not all gtk icon themes contain all icons? At least the
# Flat-Remix icon themes don't contain all the icons that Foliate uses,
# so I'm bringing in the adwaita icons as a fallback.
adwaita-icon-theme
]
++ lists.optionals cfg.hasBluetooth [ overskride ]
++ lists.optionals cfg.enableGaming [
prismlauncher
jdk17_headless
wineWowPackages.minimal
aisleriot
]
++ lists.optionals (cfg.enableWindowsCompat || cfg.enableGaming) [
wineWowPackages.minimal
qemu_kvm
]
++ lists.optionals cfg.hasBrightnessCtl [ brightnessctl ]
++ lists.optionals cfg.enableGitAnnex [
git-annex
git-remote-gcrypt
];
home.file.guile-init = {
target = ".guile";
text = ''
(use-modules (ice-9 readline))
(activate-readline)
'';
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.vanilla-dmz;
name = "Vanilla-DMZ";
size = 20;
};
home.shellAliases = {
sl = "sl -awFc5";
};
services.dunst.enable = true;
services.wpaperd.enable = true;
services.poweralertd.enable = cfg.hasBattery;
services.emacs.enable = true;
programs.mpv.enable = true;
programs.git.enable = true;
programs.jujutsu.enable = true;
programs.foot.enable = true;
programs.waybar.enable = true;
programs.firefox.enable = true;
programs.tofi.enable = true;
programs.aerc.enable = true;
programs.gallery-dl.enable = true;
programs.fish.enable = true;
programs.eza.enable = true;
programs.zoxide.enable = true;
programs.senpai.enable = true;
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.helix = {
enable = true;
defaultEditor = true;
};
xdg = {
systemDirs.data =
let
gds = pkgs.gsettings-desktop-schemas;
gtk3 = pkgs.gtk3;
in
[
"${gds}/share/gsettings-schemas/${gds.name}"
"${gtk3}/share/gsettings-schemas/${gtk3.name}"
];
userDirs =
let
annex = "${config.home.homeDirectory}/Annex";
in
{
enable = true;
createDirectories = true;
# Disable dirs that I don't use
desktop = null;
publicShare = null;
templates = null;
}
// mkIf cfg.enableGitAnnex {
pictures = "${annex}/Pictures";
music = "${annex}/Music";
documents = "${annex}/Documents";
download = "${annex}/Downloads";
};
portal.xdgOpenUsePortal = true;
};
gtk = {
theme = {
package = pkgs.flat-remix-gtk;
name = "Flat-Remix-GTK-Blue-Darkest";
};
iconTheme = {
package = pkgs.flat-remix-icon-theme;
name = "Flat-Remix-Blue-Dark";
};
};
};
}
|