{ 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; }; }; }