summary refs log tree commit diff
path: root/nixos/modules/services/x11/desktop-managers
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-03-16 15:25:41 -0400
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2021-12-03 20:17:04 -0500
commit7df34e11456ac3c86495e15975a3b37f7d1d2430 (patch)
tree7da252b71547a826a8e40c6e44a6ba86d4db6094 /nixos/modules/services/x11/desktop-managers
parent13a03fb289a5a83a0d042de51fefe27ee35a9ac1 (diff)
downloadnixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar.gz
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar.bz2
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar.lz
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar.xz
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.tar.zst
nixpkgs-7df34e11456ac3c86495e15975a3b37f7d1d2430.zip
nixos/plasma5: configuration for plasma mobile
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers')
-rw-r--r--nixos/modules/services/x11/desktop-managers/plasma5.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix
index 37471bb23b6..dc1e4acea39 100644
--- a/nixos/modules/services/x11/desktop-managers/plasma5.nix
+++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix
@@ -213,6 +213,15 @@ in
         Enable support for running the Plasma Mobile shell.
       '';
     };
+
+    mobile.installRecommendedSoftware = mkOption {
+      type = types.bool;
+      default = true;
+      description = ''
+        Installs software recommended for use with Plasma Mobile, but which
+        is not strictly required for Plasma Mobile to run.
+      '';
+    };
   };
 
   imports = [
@@ -491,11 +500,17 @@ in
         with libsForQt5;
         with plasma5; with kdeApplications; with kdeFrameworks;
         [
+          # Basic packages without which Plasma Mobile fails to work properly.
           plasma-phone-components
           plasma-nano
           pkgs.maliit-framework
           pkgs.maliit-keyboard
-        ];
+        ]
+        ++ lib.optionals (cfg.mobile.installRecommendedSoftware) [
+          # Additional software made for Plasma Mobile.
+          pkgs.angelfish
+        ]
+      ;
 
       # The following services are needed or the UI is broken.
       hardware.bluetooth.enable = true;
@@ -524,6 +539,8 @@ in
           };
         };
       };
+
+      services.xserver.displayManager.sessionPackages = [ pkgs.libsForQt5.plasma5.plasma-phone-components ];
     })
   ];
 }