Summary Files Commits Branches @commit @diff @stats
path: root / packages.nix
diff options
context:
space:
mode:
Commit2cc50e3785c2668cb228f911939495d93ec24778 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-09-23 12:30:49 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-09-23 14:16:28 +0300
Files99aea1296be5deb09afeee610037c88db6e23c7f /packages.nix
nix-2cc50e3785c2668cb228f911939495d93ec24778.tar
nix-2cc50e3785c2668cb228f911939495d93ec24778.tar.gz
nix-2cc50e3785c2668cb228f911939495d93ec24778.zip
Parent35dba540098d2a012b443c522e9e0328db46e3d2 (diff)
[all] Added initial configuration
1 files changed, 121 insertions, 0 deletions
-rw-r--r--packages.nix121
diff --git a/packages.nix b/packages.nix
new file mode 100644
index 0000000..5c5dd34
--- /dev/null
+++ b/packages.nix
@@ -0,0 +1,121 @@
+{ 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"; # TODO us,bg-custom
+ xkbOptions = "grp:alt_shift_toggle,lv3:switch,caps:escape";
+ # Window manager
+ windowManager.openbox.enable = true;
+ # touchpad support
+ libinput.enable = true;
+ libinput.touchpad.naturalScrolling = true;
+ };
+ };
+}