summaryrefslogtreecommitdiff
path: root/hosts/common/desktop/plasma.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-18 05:13:27 -0500
committerseth <[email protected]>2023-02-18 05:13:27 -0500
commit1d7b04a71c7222153ffa9cd48f73b51ea72204d1 (patch)
tree3d794209be0e2311dc76337c09c2cb39c52f6afb /hosts/common/desktop/plasma.nix
parent8a8059d9889afcbcd8a133b0b186e3a97ce7ac23 (diff)
major refactor
- `mkHost` now accepts an optional `specialArgs` argument to be passed to `nixosSystem()` - the `modules` argument for `mkHMUser` is now optional
Diffstat (limited to 'hosts/common/desktop/plasma.nix')
-rw-r--r--hosts/common/desktop/plasma.nix33
1 files changed, 12 insertions, 21 deletions
diff --git a/hosts/common/desktop/plasma.nix b/hosts/common/desktop/plasma.nix
index 98eee0b..80514fd 100644
--- a/hosts/common/desktop/plasma.nix
+++ b/hosts/common/desktop/plasma.nix
@@ -1,22 +1,13 @@
-{
- config,
- pkgs,
- ...
-}: let
- xserverConfig =
- if config.sys.desktop == "plasma"
- then {
- displayManager.sddm.enable = true;
- desktopManager.plasma5 = {
- enable = true;
- excludePackages = with pkgs.libsForQt5; [
- khelpcenter
- plasma-browser-integration
- print-manager
- ];
- };
- }
- else {};
-in {
- services.xserver = xserverConfig;
+{pkgs, ...}: {
+ services.xserver = {
+ displayManager.sddm.enable = true;
+ desktopManager.plasma5 = {
+ enable = true;
+ excludePackages = with pkgs.libsForQt5; [
+ khelpcenter
+ plasma-browser-integration
+ print-manager
+ ];
+ };
+ };
}