From 65bed8dca0fb508d71488798a282e16546724b02 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 22:57:14 +0300 Subject: [PATCH] something isnt working so i will try it on kde --- hosts/sakotop/configuration.nix | 1 + modules/desktop/default.nix | 1 + modules/desktop/kde/default.nix | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 modules/desktop/kde/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index fc065973..ec2dbc61 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -16,6 +16,7 @@ desktop = { kitty.enable = true; bspwm.enable = true; + kde.enable = true; browsers = { qutebrowser.enable = true; # for those quick thinsg where i dont know how to do it on qutebrowser diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 6105ae8c..58d45f03 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -2,6 +2,7 @@ imports = [ ./kitty ./bspwm + ./kde ./browsers ./apps ./game diff --git a/modules/desktop/kde/default.nix b/modules/desktop/kde/default.nix new file mode 100644 index 00000000..94d844eb --- /dev/null +++ b/modules/desktop/kde/default.nix @@ -0,0 +1,18 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.kde; +in +{ + options.modules.desktop.kde = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + services.xserver = { + enable = true; + libinput.enable = true; + desktopManager.plasma5.enable = true; + }; + }; +}