summaryrefslogtreecommitdiff
path: root/modules/nixos/desktop/plasma
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-02 14:40:21 -0500
committerseth <[email protected]>2024-02-02 14:40:21 -0500
commit9758b8236dcaafb958e6ef4f634d201af0bea80b (patch)
tree5c5e2ad317d6bef10a26487c5aa2e7887e18f68c /modules/nixos/desktop/plasma
parentb405f4750738a0850cf220f7bade601a8c6355b5 (diff)
modules/nixos+darwin: make everything an actual module again
Diffstat (limited to 'modules/nixos/desktop/plasma')
-rw-r--r--modules/nixos/desktop/plasma/default.nix37
1 files changed, 24 insertions, 13 deletions
diff --git a/modules/nixos/desktop/plasma/default.nix b/modules/nixos/desktop/plasma/default.nix
index d580e3f..df9fe38 100644
--- a/modules/nixos/desktop/plasma/default.nix
+++ b/modules/nixos/desktop/plasma/default.nix
@@ -1,17 +1,28 @@
-{pkgs, ...}: {
- environment = {
- plasma5.excludePackages = with pkgs.libsForQt5; [
- khelpcenter
- plasma-browser-integration
- print-manager
- ];
- };
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: let
+ cfg = config.desktop.plasma;
+in {
+ options.desktop.plasma.enable = lib.mkEnableOption "Plasma desktop";
+
+ config = lib.mkIf cfg.enable {
+ environment = {
+ plasma5.excludePackages = with pkgs.libsForQt5; [
+ khelpcenter
+ plasma-browser-integration
+ print-manager
+ ];
+ };
- services.xserver = {
- displayManager.sddm.enable = true;
- desktopManager.plasma5 = {
- enable = true;
- useQtScaling = true;
+ services.xserver = {
+ displayManager.sddm.enable = true;
+ desktopManager.plasma5 = {
+ enable = true;
+ useQtScaling = true;
+ };
};
};
}