mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-12 05:40:05 +00:00
✨ Add Catppuccin theme, home-manage sops-nix integration and update
system modules
This commit is contained in:
parent
fa3bbb2f6f
commit
4dd0860251
12 changed files with 298 additions and 19 deletions
33
modules/home/themes/catppuccin/default.nix
Normal file
33
modules/home/themes/catppuccin/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
self,
|
||||
config,
|
||||
osConfig,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption types mkIf;
|
||||
inherit (self.lib) mkOpt;
|
||||
|
||||
cfg = config.${namespace}.themes.catppuccin;
|
||||
in {
|
||||
options.${namespace}.themes.catppuccin = {
|
||||
enable = mkEnableOption "the Catppuccin theme, globally.";
|
||||
accent = mkOpt types.str "blue" "The accent colour to use.";
|
||||
flavor = mkOpt types.str "macchiato" "The flavor to use.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
accent = cfg.accent;
|
||||
flavor = cfg.flavor;
|
||||
|
||||
cursors.enable = true;
|
||||
cursors.accent = cfg.accent;
|
||||
cursors.flavor = cfg.flavor;
|
||||
};
|
||||
|
||||
${namespace}.themes.catppuccin.gtk.enable = mkIf osConfig.${namespace}.desktop.gnome.enable true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue