diff options
| author | Seth Flynn <[email protected]> | 2025-02-13 17:44:18 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-13 22:09:11 -0500 |
| commit | 8531a2bc3189e31ce1623123f92cdcfce20e49b6 (patch) | |
| tree | 9632a5f799ece67019f97f5f99f2d3b01fb23477 /modules/nixos/mixins/plasma.nix | |
| parent | 386ecf3d14ea486aba523b14200fcd2e7e04b9d6 (diff) | |
nixos: make desktop stuff mixins
Diffstat (limited to 'modules/nixos/mixins/plasma.nix')
| -rw-r--r-- | modules/nixos/mixins/plasma.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/nixos/mixins/plasma.nix b/modules/nixos/mixins/plasma.nix new file mode 100644 index 0000000..a43d718 --- /dev/null +++ b/modules/nixos/mixins/plasma.nix @@ -0,0 +1,44 @@ +{ + config, + lib, + pkgs, + inputs', + ... +}: + +{ + config = lib.mkMerge [ + { + environment = { + plasma6.excludePackages = with pkgs.kdePackages; [ + discover + khelpcenter + konsole + plasma-browser-integration + ]; + }; + + services.displayManager.sddm = { + wayland.enable = true; + }; + } + + (lib.mkIf config.services.desktopManager.plasma6.enable { + environment = { + sessionVariables = { + NIXOS_OZONE_WL = "1"; + }; + + systemPackages = [ + inputs'.krunner-nix.packages.default # Thank you Leah + pkgs.ghostty + pkgs.haruna # MPV frontend + ]; + }; + + services.displayManager.sddm = { + enable = lib.mkDefault true; + }; + }) + ]; +} |
