From ffb23dc187fe0cb381b31edc797ef607524c76c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 17 Aug 2025 15:39:55 +0200 Subject: [PATCH] System Gen100 @ 2025-08-17-15:39:54 by jonas@monolith --- hosts/monolith/configuration.nix | 2 +- modules/default.nix | 1 + modules/desktop/themes/default.nix | 5 +++++ modules/desktop/themes/layan.nix | 21 +++++++++++++++++++++ modules/home/themes/layan.nix | 7 ------- 5 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 modules/desktop/themes/default.nix create mode 100644 modules/desktop/themes/layan.nix diff --git a/hosts/monolith/configuration.nix b/hosts/monolith/configuration.nix index 84ce7c5..adb144b 100644 --- a/hosts/monolith/configuration.nix +++ b/hosts/monolith/configuration.nix @@ -51,6 +51,7 @@ # hive modules hive.nix-scripts.enable = true; hive.displayManager.name = "sddm"; + hive.themes.layan.enable = true; hive.plasma.enable = true; hive.kwallet.enable = true; hive.kwallet.forUsers = ["jonas"]; @@ -98,7 +99,6 @@ firefox git gramps - hive.layan-qt6 insomnia libreoffice mosquitto diff --git a/modules/default.nix b/modules/default.nix index 6604626..ccc3b8e 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -18,6 +18,7 @@ # pure system modules ./desktop/de ./desktop/dm + ./desktop/themes ./hardware/bluetooth.nix ./hardware/sound.nix ./hardware/yubikey.nix diff --git a/modules/desktop/themes/default.nix b/modules/desktop/themes/default.nix new file mode 100644 index 0000000..65faac2 --- /dev/null +++ b/modules/desktop/themes/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./layan.nix + ]; +} diff --git a/modules/desktop/themes/layan.nix b/modules/desktop/themes/layan.nix new file mode 100644 index 0000000..a89573c --- /dev/null +++ b/modules/desktop/themes/layan.nix @@ -0,0 +1,21 @@ +{ + lib, + config, + pkgs, + ... +}: let + cfg = config.hive.themes.layan; +in { + options.hive.themes.layan = { + enable = lib.mkEnableOption "Layan theme configuration"; + }; + config = lib.mkIf cfg.enable { + environment.systemPackages = [ + pkgs.hive.layan-qt6 + pkgs.kdePackages.qtstyleplugin-kvantum + pkgs.unstable.layan-cursors + pkgs.layan-gtk-theme + pkgs.tela-circle-icon-theme + ]; + }; +} diff --git a/modules/home/themes/layan.nix b/modules/home/themes/layan.nix index 28affad..b81470f 100644 --- a/modules/home/themes/layan.nix +++ b/modules/home/themes/layan.nix @@ -11,13 +11,6 @@ in { }; config = lib.mkIf cfg.enable { - home.packages = [ - pkgs.kdePackages.qtstyleplugin-kvantum - pkgs.unstable.layan-cursors - pkgs.layan-gtk-theme - pkgs.tela-circle-icon-theme - ]; - qt.enable = false; qt.style.name = "kvantum"; qt.style.package = pkgs.kdePackages.qtstyleplugin-kvantum;