blob: b56ac6899575131696992c2eb0c227a1012bcb85 (
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
|
# Desktop profile: the GNOME+niri graphical shell, login manager, audio, fonts,
# graphics, printing, a terminal, and the gpg agent. Opt-in per machine.
{ pkgs, ... }:
{
# Enable the X11 windowing system.
services.xserver.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable the GNOME Desktop Environment.
services.displayManager.gdm.enable = false;
services.desktopManager.gnome.enable = true;
programs.dconf.enable = true;
programs.niri.enable = true;
# login screen
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --cmd niri-session";
user = "greeter";
};
};
};
# This is required to let tuigreet write to its cache (for --remember)
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal"; # Better for debugging
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
# prevent auto-mounting optical disks
services.udisks2.enable = true;
# Enable CUPS to print documents.
services.printing = {
enable = true;
drivers = with pkgs; [
gutenprint
];
};
# mDNS: printer discovery, and resolves kusanagi's *.local NAS names.
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
noto-fonts-cjk-sans
noto-fonts-cjk-serif
inter
nerd-fonts.symbols-only
noto-fonts
ibm-plex
public-sans
adwaita-fonts
];
fontconfig = {
enable = true;
defaultFonts = {
monospace = [
"Berkeley Mono"
"Liberation Mono"
"Symbols Nerd Font"
];
sansSerif = [
"Liberation Sans"
"Noto Sans"
];
serif = [ "Liberation Serif" ];
emoji = [ "Nerd Font Symbols Only" ];
};
# Force ui-sans-serif and system-ui to resolve correctly
localConf = ''
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias>
<family>system-ui</family>
<prefer>
<family>Liberation Sans</family>
</prefer>
</alias>
<alias>
<family>ui-sans-serif</family>
<prefer>
<family>Liberation Sans</family>
</prefer>
</alias>
</fontconfig>
'';
};
fontDir.enable = true;
};
environment.sessionVariables = {
GSK_RENDERER = "gl";
XCURSOR_THEME = "Bibata-Modern-Classic";
XCURSOR_SIZE = "24";
HYPRCURSOR_THEME = "Bibata-Modern-Classic";
HYPRCURSOR_SIZE = "24";
};
# Graphics setup
hardware.graphics = {
enable = true;
enable32Bit = true;
};
users.users.henz.extraGroups = [
"audio"
"lp"
"input"
];
environment.systemPackages = with pkgs; [
# notifications (mako = wayland notification daemon, libnotify = notify-send)
mako
libnotify
];
users.users.henz.packages = with pkgs; [
ghostty # terminal — required to actually use the GUI
gnupg
pinentry-gnome3
# niri support tools
waybar
networkmanagerapplet
xwayland-satellite
fuzzel
swaybg
];
}
|