From b595c6ed77c938d92f7d1867c27bcb77e3fc2975 Mon Sep 17 00:00:00 2001 From: chn Date: Fri, 18 Aug 2023 23:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=AE=B8=E5=A4=9A=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E5=8C=85=E7=A7=BB=E5=8A=A8=E5=88=B0=20workstatioin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/packages/default.nix | 92 +++++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 39 deletions(-) diff --git a/modules/packages/default.nix b/modules/packages/default.nix index 34f36835..f56badf3 100644 --- a/modules/packages/default.nix +++ b/modules/packages/default.nix @@ -58,11 +58,7 @@ inputs: # networking ipset iptables iproute2 dig nettools traceroute tcping-go whois tcpdump nmap inetutils # nix tools - nix-output-monitor pnpm-lock-export - # development - clang-tools_16 ccls fprettify - # office - todo-txt-cli pandoc pdfchain + nix-output-monitor ] ++ (with inputs.config.boot.kernelPackages; [ cpupower usbip ]); }; programs = @@ -115,38 +111,20 @@ inputs: gparted snapper-gui libsForQt5.qtstyleplugin-kvantum wl-clipboard-x11 kio-fuse wl-mirror wayland-utils clinfo glxinfo vulkan-tools dracut # nix tools - nix-template appimage-run nil nixd nix-alien ssh-to-age nix-serve node2nix nix-prefetch-github - prefetch-npm-deps nix-prefetch-docker - # instant messager - element-desktop telegram-desktop discord qq nur-xddxdd.wechat-uos # jail - inputs.config.nur.repos.linyinfeng.wemeet # native # nur-xddxdd.wine-wechat thunder - zoom-us signal-desktop cinny-desktop - # browser - google-chrome + nix-template # networking remmina putty mtr-gui # password and key management bitwarden yubikey-manager yubikey-manager-qt yubikey-personalization yubikey-personalization-gui # download - qbittorrent yt-dlp nur-xddxdd.baidupcs-go wgetpaste - # office - crow-translate libreoffice-qt zotero texlive.combined.scheme-full gnuplot poppler_utils pdftk + qbittorrent # development - scrcpy jetbrains.clion android-studio dbeaver cling + scrcpy # media - nur-xddxdd.svp spotify yesplaymusic mpv nomacs simplescreenrecorder obs-studio imagemagick gimp - netease-cloud-music-gtk waifu2x-converter-cpp inkscape blender - # virtualization - wine virt-viewer bottles # wine64 - # text editor - localPackages.typora appflowy notion-app-enhanced joplin-desktop standardnotes - # math, physics and chemistry - octave root ovito paraview localPackages.vesta qchem.quantum-espresso # vsim + mpv nomacs # themes orchis-theme tela-circle-icon-theme plasma-overdose-kde-theme materia-kde-theme graphite-kde-theme arc-kde-theme materia-theme - # news - fluent-reader newsflash rssguard newsboat # davinci-resolve playonlinux ( vscode-with-extensions.override @@ -179,20 +157,10 @@ inputs: ]; } ) - ] ++ (with inputs.lib; filter isDerivation (attrValues plasma5Packages.kdeGear)); - _pythonPackages = [(pythonPackages: with pythonPackages; - [ - phonopy inquirerpy requests tensorflow keras python-telegram-bot tqdm - fastapi pypdf2 pandas openai matplotlib scipy plotly gunicorn scikit-learn redis jinja2 - ])]; - _prebuildPackages = [ httplib magic-enum xtensor boost cereal cxxopts ftxui yaml-cpp gfortran gcc10 python2 ]; + ]; }; programs = { - anime-game-launcher.enable = true; - honkers-railway-launcher.enable = true; - steam.enable = true; - kdeconnect.enable = true; wireshark = { enable = true; package = inputs.pkgs.wireshark; }; firefox = { enable = true; languagePacks = [ "zh-CN" "en-US" ]; }; nix-ld.enable = true; @@ -211,7 +179,53 @@ inputs: ( mkIf (inputs.config.nixos.packages.packageSet == "workstation") { - nixos.packages._packages = with inputs.pkgs; [ mathematica ]; + nixos.packages = + { + _packages = with inputs.pkgs; + [ + clang-tools_16 ccls fprettify pnpm-lock-export mathematica nil nixd nix-alien nix-serve node2nix + nix-prefetch-github prefetch-npm-deps nix-prefetch-docker appimage-run + discord qq nur-xddxdd.wechat-uos # jail + inputs.config.nur.repos.linyinfeng.wemeet # native # nur-xddxdd.wine-wechat thunder + zoom-us signal-desktop cinny-desktop + texlive.combined.scheme-full gnuplot poppler_utils pdftk + nur-xddxdd.svp spotify yesplaymusic simplescreenrecorder obs-studio imagemagick gimp netease-cloud-music-gtk + waifu2x-converter-cpp inkscape blender + jetbrains.clion android-studio dbeaver cling + yt-dlp nur-xddxdd.baidupcs-go wgetpaste + # virtualization + wine virt-viewer bottles # wine64 + appflowy notion-app-enhanced joplin-desktop standardnotes + # math, physics and chemistry + octave root ovito paraview localPackages.vesta qchem.quantum-espresso # vsim + # news + fluent-reader newsflash rssguard newsboat + # office + todo-txt-cli pandoc pdfchain + # office + crow-translate libreoffice-qt zotero + # browser + google-chrome + # text editor + localPackages.typora + # instant messager + element-desktop telegram-desktop + ] ++ (with inputs.lib; filter isDerivation (attrValues plasma5Packages.kdeGear)); + _pythonPackages = [(pythonPackages: with pythonPackages; + [ + phonopy inquirerpy requests tensorflow keras python-telegram-bot tqdm + fastapi pypdf2 pandas openai matplotlib scipy plotly gunicorn scikit-learn redis jinja2 + ])]; + _prebuildPackages = with inputs.pkgs; + [ httplib magic-enum xtensor boost cereal cxxopts ftxui yaml-cpp gfortran gcc10 python2 ]; + }; + programs = + { + anime-game-launcher.enable = true; + honkers-railway-launcher.enable = true; + steam.enable = true; + kdeconnect.enable = true; + }; } ) # apply package configs