-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfiguration.nix##hostname.leevi
273 lines (211 loc) · 4.51 KB
/
configuration.nix##hostname.leevi
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
{ config, pkgs, ... }:
{
imports = [
./common.nix
];
networking.hostName = "leevi";
boot.loader.systemd-boot = {
enable = true;
};
system.stateVersion = "23.05";
nix.nixPath = [
"nixpkgs=/etc/nixpkgs"
"nixos-config=/etc/nixos/configuration.nix"
];
users.predefinedUsers = {
jluttine = [ "wheel" "adbusers" ];
};
hardware = {
printers = {
ensurePrinters = [
{
name = "HP_LaserJet_1010";
location = "Home";
deviceUri = "http://192.168.10.10:631/printers/HP_LaserJet_1010";
model = "drv:///sample.drv/generic.ppd";
ppdOptions = {
PageSize = "A4";
};
}
];
ensureDefaultPrinter = "HP_LaserJet_1010";
};
};
services = {
displayManager.sddm.enable = true;
xserver = {
desktopManager.nide = {
enable = true;
installPackages = false;
};
};
syncthing = {
enable = true;
user = "jluttine";
group = "users";
dataDir = "/home/jluttine/.syncthing";
configDir = "/home/jluttine/.syncthing/.config";
};
tlp = {
enable = false; # not supported.. :(
};
autorandr.enable = true;
udev.packages = [ pkgs.tuxedo-touchpad-switch ];
};
# Touchpad on/off toggle
services.actkbd = {
enable = true;
bindings = [
{
keys = [ 29 85 125 ];
events = [ "key" ];
command = "${pkgs.tuxedo-touchpad-switch}/bin/tuxedo-touchpad-toggle";
}
];
};
programs = {
adb.enable = true;
kdeconnect.enable = true;
cryptos.enable = true;
direnv.enable = true;
};
environment.systemPackages = with pkgs; [
tuxedo-touchpad-switch
# LaTeX
texlive.combined.scheme-full
# OpenStreetMap editor
josm
# 3D modelling
blender
# Zotero client
#qnotero
encfs
# Diff tools
kdiff3
# Command line
zsh
p7zip
qrencode
# RSS reader
# rssguard
#feedreader
rssguard
w_scan
# Disk usage analysis
filelight
# Audio editor
audacity
# Screen recorder
simplescreenrecorder
# MPD client
cantata
# Conda for Leanheat stuff
python3Packages.conda
# Panorama stitcher (with raw support)
hugin
#dcraw # marked as insecure
#kdenlive
ffmpeg-full
# mlt
# frei0r
# HDR photography
luminanceHDR
# Instant messaging
tdesktop
#linphone
element-desktop
# Encryption
openssl
# Tool for searching files/binaries from Nix packages
nix-index
# Programming
emacs
gitAndTools.gitflow
gitAndTools.hub
ripgrep
fd
haskell-language-server
haskellPackages.hoogle
cabal-install
shellcheck
# Password manager
pass
yubikey-manager-qt
yubikey-manager
yubikey-personalization-gui
yubikey-personalization
# C64
vice
jstest-gtk
# Separate tiling window manager
#i3
patchelf
# Mobile SSH replacement
mosh
# k3b
dvdplusrwtools
nixpkgs-review
nixpkgs-fmt
nixfmt-classic
gdb
# Break timer
stretchly
(python3.withPackages (ps: with ps; [
numpy
scipy
pandas
ipython
# Python language server for Emacs
python-lsp-server
]))
# File manager
dolphin
fish # SSH support for dolphin
libsForQt5.kio-extras
# Archives (e.g., tar.gz and zip)
ark
# Screenshots
spectacle
# Bluetooth
bluedevil
# Printing and scanning
simple-scan
# Document readers
okular
# Workaround for https://github.com/NixOS/nixpkgs/issues/226012
(krop.overridePythonAttrs (old: rec {
propagatedBuildInputs = with python3Packages; [
pyqt5
pypdf
poppler-qt5
ghostscript
];
}))
# Browsers
firefox
chromium
# Email
thunderbird
# Photo/image editor
gwenview
# Gimp requires this, see: https://github.com/NixOS/nixpkgs/issues/60918
#gnome3.gnome-themes-extra
# Media player
vlc
jitsi-meet-electron
youtube-music
signal-desktop
# For GNOME Keyring to work for git https protocol, use git-credential-libsecret:
#
# git config --global credential-helper /run/current-system/sw/bin/git-credential-libsecret
#
# That binary is included in gitFull.
gitAndTools.gitFull
git-extras
# Choose some icon theme
adwaita-icon-theme
maia-icon-theme
# Not sure if this is needed:
hicolor-icon-theme
];
}