-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon-graphical.nix
194 lines (164 loc) · 3.38 KB
/
common-graphical.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
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
{
config,
pkgs,
...
}: {
imports = [
./greetd.nix
./stylix.nix
];
boot = {
extraModulePackages = builtins.attrValues {
inherit (config.boot.kernelPackages) v4l2loopback;
};
kernelModules = ["v4l2loopback"];
plymouth = {
enable = true;
font = "${pkgs.inter}/share/fonts/truetype/Inter.ttc";
theme = "musicaloft-rainbow";
themePackages = [
pkgs.plymouth-theme-musicaloft-rainbow
];
};
};
environment = {
defaultPackages = with pkgs; [
gnome-bluetooth
kodi
konsole
ksshaskpass
libcanberra
libcanberra-gtk3
muse-sounds
v4l-utils
wayfire
# needed for xdg-open and such
xdg-utils
# needed for hyprland
qt5.qtwayland
qt6.qtwayland
];
sessionVariables.NIXOS_OZONE_WL = "1";
};
fonts = {
fontDir.enable = true;
packages = with pkgs; [
nerd-fonts.iosevka
libertine
material-design-icons
noto-fonts-cjk-sans
noto-fonts-extra
];
};
hardware = {
# Enable brillo
brillo.enable = true;
# enable driSupport for hyprland
graphics.enable = true;
keyboard.qmk.enable = true;
# Ledger
ledger.enable = true;
xpadneo.enable = true;
};
networking = {
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
# Enables wireless support via iwd.
wireless.iwd = {
enable = true;
settings = {
Blacklist = {
InitialTimeout = 10;
Multiplier = 2;
MaximumTimeout = 1800;
};
};
};
# Encrypts network traffic where possible (i think)
tcpcrypt.enable = true;
};
programs = {
adb.enable = true;
evolution = {
enable = true;
plugins = [pkgs.evolution-ews];
};
gphoto2.enable = true;
hyprland.enable = true;
java = {
enable = true;
package = pkgs.jdk;
};
};
services = {
blueman.enable = true;
# for mpris album art on muse-shell
gvfs.enable = true;
input-remapper = {
enable = true;
serviceWantedBy = ["multi-user.target"];
};
pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
};
# profile sync daemon, for SSDs and browsers
psd.enable = true;
xserver = {
# Configure keymap in X11
xkb.layout = "us";
# wacom tablet support
wacom.enable = true;
};
};
systemd.packages = [
pkgs.libcanberra
];
# Define a user account. Don't forget to set a password with ‘passwd’.
users = {
users = {
muni = {
isNormalUser = true;
description = "municorn";
extraGroups = [
"adbusers"
"audio"
"camera"
"docker"
"kvm"
"libvirtd"
"networkmanager"
"nixos-config"
"plugdev"
"video"
"wheel"
];
uid = 1001;
};
tcpcryptd.group = "tcpcryptd";
};
groups = {
nixos-config = {};
tcpcryptd = {};
};
defaultUserShell = pkgs.fish;
};
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
wlr.enable = false;
xdgOpenUsePortal = true;
};
sounds.enable = true;
};
}