From 7a65a5404ca0000b6d1c565d3e7264f8e91ff9e5 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 20 Oct 2024 11:16:51 -0700 Subject: [PATCH] feat(kvantum): Remove Kvantum --- modules/home-manager/all-modules.nix | 1 - modules/home-manager/kvantum.nix | 58 ---------------------------- 2 files changed, 59 deletions(-) delete mode 100644 modules/home-manager/kvantum.nix diff --git a/modules/home-manager/all-modules.nix b/modules/home-manager/all-modules.nix index 3c777be..5f42852 100644 --- a/modules/home-manager/all-modules.nix +++ b/modules/home-manager/all-modules.nix @@ -15,7 +15,6 @@ ./hyprland.nix ./k9s.nix ./kitty.nix - ./kvantum.nix ./lazygit.nix ./newsboat.nix ./mako.nix diff --git a/modules/home-manager/kvantum.nix b/modules/home-manager/kvantum.nix deleted file mode 100644 index 2f7d71a..0000000 --- a/modules/home-manager/kvantum.nix +++ /dev/null @@ -1,58 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -let - cfg = config.qt.style.catppuccin; - enable = cfg.enable && config.qt.enable; - - flavorCapitalized = lib.ctp.mkUpper cfg.flavor; - accentCapitalized = lib.ctp.mkUpper cfg.accent; - theme = pkgs.catppuccin-kvantum.override { - accent = accentCapitalized; - variant = flavorCapitalized; - }; - themeName = "Catppuccin-${flavorCapitalized}-${accentCapitalized}"; -in -{ - options.qt.style.catppuccin = lib.ctp.mkCatppuccinOpt { name = "Kvantum"; } // { - accent = lib.ctp.mkAccentOpt "Kvantum"; - - apply = lib.mkOption { - type = lib.types.bool; - default = true; - description = '' - Applies the theme by overwriting `$XDG_CONFIG_HOME/Kvantum/kvantum.kvconfig`. - If this is disabled, you must manually set the theme (e.g. by using `kvantummanager`). - ''; - }; - }; - - config = lib.mkIf enable { - assertions = [ - { - assertion = lib.elem config.qt.style.name [ - "kvantum" - "Kvantum" - ]; - message = ''`qt.style.name` must be `"kvantum"` to use `qt.style.catppuccin`''; - } - { - assertion = lib.elem (config.qt.platformTheme.name or null) [ "kvantum" ]; - message = ''`qt.platformTheme.name` must be set to `"kvantum"` to use `qt.style.catppuccin`''; - } - ]; - - xdg.configFile = { - "Kvantum/${themeName}".source = "${theme}/share/Kvantum/${themeName}"; - "Kvantum/kvantum.kvconfig" = lib.mkIf cfg.apply { - text = '' - [General] - theme=${themeName} - ''; - }; - }; - }; -}