Commit 8d42cab

HPCesia <me@hpcesia.com>
2025-12-03 08:14:01
feat: remove useless packages
1 parent 0be6998
Changed files (1)
modules
desktop
apps
modules/desktop/apps/browser/firefox.nix
@@ -7,15 +7,12 @@
     isPlasma =
       pkgs.stdenv.hostPlatform.isLinux
       && osConfig.services.desktopManager.plasma6.enable;
-    isNiri = osConfig.programs.niri.enable;
   in {
     stylix.targets.firefox = {
       profileNames = ["default"];
       colorTheme.enable = true;
     };
 
-    home.packages = lib.optionals isNiri [pkgs.pywalfox-native];
-
     programs.firefox = {
       enable = true;
       languagePacks = ["zh-CN" "en-US"];
@@ -34,6 +31,7 @@
         OfferToSaveLogins = false;
         PasswordManagerEnabled = false;
       };
+
       profiles.default = {
         id = 0;
         isDefault = true;
@@ -50,19 +48,17 @@
             baidu.metaData.hidden = true;
           };
         };
+
         extensions.force = true;
         extensions.packages =
           (with pkgs.nur.repos.rycee.firefox-addons; [
             ublock-origin
             bitwarden
             tampermonkey
-            rsshub-radar
             aria2-integration
           ])
-          ++ (lib.optionals isPlasma
-            (with pkgs.nur.repos.rycee.firefox-addons; [
-              plasma-integration
-            ]));
+          ++ (lib.optional isPlasma pkgs.nur.repos.rycee.firefox-addons.plasma-integration);
+
         settings = {
           # No First Run
           "app.normandy.first_run" = false;