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
|
{ pkgs, ... }:
let inherit (import ./sysidentity.nix) sysidentity;
in {
# List packages installed in system profile. To search, run:
# $ nix search wget
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs;
let
cli-core = [
# Hardware managing apps
pipewire libinput lm_sensors lshw chrony iotop
parted dosfstools mtpfs ntfs3g squashfsTools
# Network
wget git rsync inetutils vnstat
# Working with files
vim inotify-tools lsof
# General usage
zsh htop rlwrap bc ddrescue cron
];
cli-userspace = [
# Working with files
ffmpeg img2pdf pdftk imagemagick pngcrush jpegoptim optipng gd kid3 pandoc libisoburn
# Archive formats
p7zip dpkg cdrtools zip unzip rar unrar rpm
# Misc
neofetch exa moc lazygit aspell
];
openboxDE-userspace = [
terminator
# Settings and backup tools
feh xterm arandr pavucontrol blueberry piper
# Tray
libappindicator networkmanagerapplet pnmixer copyq flameshot barrier redshift
# File openers/players
audacious mpv libreoffice evince gnome.eog gnome.file-roller cinnamon.nemo-with-extensions gnome.seahorse
# File/image/audio editors
gimp inkscape texmaker krita ardour
# Web (app) clients
brave firefox bitwarden nextcloud-client thunderbird birdtray
# System
gnome.gnome-system-monitor udisks gnome.gnome-disk-utility baobab gnome.simple-scan peek gparted
obs-studio qbittorrent speedcrunch virt-manager
];
openboxDE-core = [
# Essential libs
dbus cairo libnotify gtk3 yad gnome.zenity gnome.gvfs gmtp at-spi2-atk
# Main apps and their config apps
# window manager, compositor, taskbar, notifications, app menu, lockscreen, session manager
openbox lxappearance obconf picom tint2 dunst jgmenu i3lock-color lightdm lightdm-gtk-greeter
# General X11 tools
lxqt.lxqt-policykit xorg.xev xfontsel xorg.xmodmap xorg.xwininfo xorg.xprop clipnotify xdotool xautolock xcape xorg.setxkbmap xkbmon
devilspie2 sxhkd
];
laptop = [
brightnessctl powertop upower libinput-gestures acpid tlp
];
desktop = [
timeshift
];
dev = [
# C/C++
clang glibc gcc gdb valgrind pugixml
# .NET
dotnet-sdk mono
# Python
python3Minimal
# Android
android-tools heimdall
# Networking
apacheHttpd wireshark gns3-gui gns3-server
# awk
gawk mawk nawk
# DB
mysql sqlitebrowser
# Functional
racket ghc sbcl
cloc go php fontforge
];
in cli-core ++ cli-userspace ++ openboxDE-userspace ++ openboxDE-core ++ dev ++
(if sysidentity.type == "laptop" then laptop else desktop);
fonts.fonts = with pkgs; [
noto-fonts noto-fonts-emoji cm_unicode symbola
# CJK
noto-fonts-cjk arphic-ukai arphic-uming takao wqy_microhei wqy_zenhei
];
security.polkit.enable = true;
# List services that you want to enable:
programs = {
dconf.enable = true;
zsh.enable = true;
gnome-disks.enable = true;
};
services = {
dbus.packages = with pkgs; [ gnome2.GConf ];
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
upower.enable = true;
httpd.enable = true;
tlp.enable = true;
udisks2.enable = true; # gnome-disks disk access
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # MTP (for nemo)
xserver = {
enable = true;
# xkbmap
layout = "us,bg"; # TODO us,bg-custom
xkbVariant = ",phonetic";
xkbOptions = "grp:alt_shift_toggle,lv3:switch,caps:escape";
# Window manager
windowManager.openbox.enable = true;
# touchpad support
libinput.enable = true;
libinput.touchpad.naturalScrolling = true;
};
};
}
|