From 9fdbe27389366658fef8e26174b9ab57a8b2f481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sat, 3 May 2025 23:42:23 +0200 Subject: [PATCH] Home Gen513 @ 2025-05-03-18:55 by jonas@comfy-station --- modules/home/plasma.nix | 14 ++++---- modules/home/plasma/layan-kde.nix | 55 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 modules/home/plasma/layan-kde.nix diff --git a/modules/home/plasma.nix b/modules/home/plasma.nix index d51100d..6b3f06f 100644 --- a/modules/home/plasma.nix +++ b/modules/home/plasma.nix @@ -19,14 +19,14 @@ in { }; # Use kvantum-theme - home.sessionVariables = { - QT_STYLE_OVERRIDE = "kvantum"; - }; + # home.sessionVariables = { + # QT_STYLE_OVERRIDE = "kvantum"; + # }; # provide kvantum and nord theme home.packages = [ - # pkgs.utterly-nord-plasma - pkgs.libsForQt5.qtstyleplugin-kvantum + pkgs.layan-kde + pkgs.kdePackages.qtstyleplugin-kvantum ]; programs.konsole = { @@ -46,7 +46,7 @@ in { # use kvantum theme qt.enable = true; - qt.style.name = "kvantum"; + qt.style.name = "layan"; # add nord like gtk theme gtk = { @@ -74,7 +74,7 @@ in { # workspace = { clickItemTo = "select"; - # lookAndFeel = "Utterly-Nord"; + lookAndFeel = "com.github.vinceliuice.Layan"; theme = "breeze"; # colorScheme = "UtterlyNord"; cursor = { diff --git a/modules/home/plasma/layan-kde.nix b/modules/home/plasma/layan-kde.nix new file mode 100644 index 0000000..86050ae --- /dev/null +++ b/modules/home/plasma/layan-kde.nix @@ -0,0 +1,55 @@ +{ + stdenv, + lib, + fetchFromGitHub, + kdeclarative, + plasma-framework, + plasma-workspace, + gitUpdater, +}: +stdenv.mkDerivation rec { + pname = "layan-kde"; + version = "2025-02-13"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = pname; + rev = "ace0b1d93e5f08c650630c146b2d637e1e2e6cd1"; + hash = "sha256-T69bGjfZeOsJLmOZKps9N2wMv5VKYeo1ipGEsLAS+Sg="; + }; + + # Propagate sddm theme dependencies to user env otherwise sddm does + # not find them. Putting them in buildInputs is not enough. + propagatedUserEnvPkgs = [ + kdeclarative.bin + plasma-framework + plasma-workspace + ]; + + postPatch = '' + patchShebangs install.sh + + substituteInPlace install.sh \ + --replace '$HOME/.local' $out \ + --replace '$HOME/.config' $out/share + ''; + + installPhase = '' + runHook preInstall + + name= ./install.sh --dest $out/share/themes + + mkdir -p $out/share/sddm/themes + + runHook postInstall + ''; + + passthru.updateScript = gitUpdater {}; + + meta = with lib; { + description = "Flat Design theme for KDE Plasma desktop"; + homepage = "https://github.com/vinceliuice/Layan-kde"; + license = licenses.gpl3Only; + platforms = platforms.all; + }; +}