Commit 9a23182

HPCesia <me@hpcesia.com>
2026-02-16 15:45:57
feat: remove some packages
1 parent 22544da
Changed files (4)
modules/desktop/apps/thunar/config.nix
@@ -1,34 +0,0 @@
-{lib, ...}: {
-  flake.modules.nixos.de-discrete = {pkgs, ...}: {
-    programs.thunar = {
-      enable = true;
-      plugins = with pkgs; [
-        thunar-archive-plugin
-        thunar-volman
-      ];
-    };
-  };
-
-  flake.modules.homeManager.de-discrete = {config, ...}: {
-    xfconf.settings.thunar = {
-      "misc-symbolic-icons-in-sidepane" = true;
-    };
-
-    programs.thunar.actions =
-      []
-      ++ (lib.optional (config.programs.ghostty.enable) {
-        name = "在 Ghostty 中打开";
-        submenu = "在终端中打开";
-        icon = "terminal";
-        command = "for f in %F; do ghostty --working-directory=\"$f\"; done";
-        appears.directories = true;
-      })
-      ++ (lib.optional (config.programs.foot.enable) {
-        name = "在 Foot 中打开";
-        submenu = "在终端中打开";
-        icon = "terminal";
-        command = "for f in %F; do foot --working-directory=\"$f\"; done";
-        appears.directories = true;
-      });
-  };
-}
modules/desktop/apps/thunar/option.nix
@@ -1,64 +0,0 @@
-{lib, ...}: {
-  flake.modules.homeManager.de-discrete = {config, ...}: {
-    options.programs.thunar.actions = lib.mkOption {
-      default = [];
-      type = lib.types.listOf (lib.types.submodule {
-        options = {
-          icon = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          name = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          submenu = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          command = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          description = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          range = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          patterns = lib.mkOption {
-            default = "";
-            type = lib.types.str;
-          };
-          appears =
-            lib.genAttrs'
-            ["directories" "audio-files" "image-files" "other-files" "text-files" "video-files"]
-            (s: lib.nameValuePair s (lib.mkEnableOption ""));
-        };
-      });
-    };
-
-    config = {
-      xdg.configFile."Thunar/uca.xml".text = lib.mkIf ((lib.length config.programs.thunar.actions) > 0) ''
-        <?xml version="1.0" encoding="UTF-8"?>
-        <actions>
-        ${lib.concatImapStringsSep "\n" (index: action: ''
-            <action>
-              <unique-id>${builtins.toString index}</unique-id>
-              ${lib.concatMapAttrsStringSep "\n  " (
-                name: value:
-                  if (lib.typeOf value == "string")
-                  then "<${name}>${lib.escapeXML value}</${name}>"
-                  else lib.concatMapAttrsStringSep "\n  " (name: _: "<${name}/>") (lib.filterAttrs (_: v: v) value)
-              )
-              action}
-            </action>
-          '')
-          config.programs.thunar.actions}
-        </actions>
-      '';
-    };
-  };
-}
modules/desktop/apps/aria2.nix
@@ -1,11 +0,0 @@
-{
-  flake.modules.homeManager.desktop = _: {
-    programs.aria2 = {
-      enable = true;
-      settings = {
-        enable-rpc = true;
-        rpc-listen-port = 6800;
-      };
-    };
-  };
-}
modules/desktop/apps/packages.nix
@@ -61,7 +61,6 @@
         imagemagick
         inkscape
         qq
-        rnote
         wechat
         wireshark
       ])
@@ -71,8 +70,8 @@
         gimp3
         kdePackages.kdenlive
         # libreoffice-qt6 # Use WPS instead.
+        nautilus
         obs-studio
-        readest
         veracrypt
         wpsoffice-cn
       ]));