Skip to content

Instantly share code, notes, and snippets.

@cidkidnix
Last active November 30, 2021 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cidkidnix/b5fd486657e094f29a320579e72843c7 to your computer and use it in GitHub Desktop.
Save cidkidnix/b5fd486657e094f29a320579e72843c7 to your computer and use it in GitHub Desktop.
I hate plasma5 nix scope
--- a/nixos/modules/services/x11/desktop-managers/plasma5.nix 2021-11-30 01:07:18.970026114 -0600
+++ a/nixos/modules/services/x11/desktop-managers/plasma5.nix 2021-11-30 01:09:06.331846165 -0600
@@ -138,6 +138,11 @@
description = "Enable the Plasma 5 (KDE 5) desktop environment.";
};
+ kwinPackage = mkOption {
+ type = types.package;
+ default = pkgs.kwin;
+ };
+
phononBackend = mkOption {
type = types.enum [ "gstreamer" "vlc" ];
default = "gstreamer";
@@ -211,7 +216,7 @@
owner = "root";
group = "root";
capabilities = "cap_sys_nice+ep";
- source = "${getBin plasma5.kwin}/bin/kwin_wayland";
+ source = "${getBin cfg.kwinPackage}/bin/kwin_wayland";
};
};
@@ -284,7 +289,7 @@
kscreenlocker
ksystemstats
kwayland
- kwin
+ cfg.kwinPackage
kwrited
libkscreen
libksysguard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment