theming: [FIX] evaluation error when not enabling theme option

nixos
Moritz Böhme 2023-02-26 12:50:06 +01:00
parent ea59147fcd
commit 5af6008c7d
6 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ let
cfg = config.my.theming;
in
{
config = mkIf (cfg.scheme == "catppuccin-frappe")
config = mkIf (cfg.enable && cfg.scheme == "catppuccin-frappe")
(import ./catppuccin.nix
{
inherit config lib pkgs;

View File

@ -5,7 +5,7 @@ let
cfg = config.my.theming;
in
{
config = mkIf (cfg.scheme == "catppuccin-latte")
config = mkIf (cfg.enable && cfg.scheme == "catppuccin-latte")
(import ./catppuccin.nix
{
inherit config lib pkgs;

View File

@ -5,7 +5,7 @@ let
cfg = config.my.theming;
in
{
config = mkIf (cfg.scheme == "catppuccin-macchiato")
config = mkIf (cfg.enable && cfg.scheme == "catppuccin-macchiato")
(import ./catppuccin.nix
{
inherit config lib pkgs;

View File

@ -5,7 +5,7 @@ let
cfg = config.my.theming;
in
{
config = mkIf (cfg.scheme == "catppuccin-mocha")
config = mkIf (cfg.enable && cfg.scheme == "catppuccin-mocha")
(import ./catppuccin.nix
{
inherit config lib pkgs;

View File

@ -17,7 +17,7 @@ let
yellow = "#f1fa8c";
in
{
config = mkIf (cfg.scheme == "dracula") {
config = mkIf (cfg.enable && cfg.scheme == "dracula") {
home-manager.users.moritz = {
programs = {
kitty.extraConfig =

View File

@ -37,7 +37,7 @@ in
"feh".state = "floating";
"Vampire_Survivors".state = "fullscreen";
};
settings = with config.scheme.withHashtag; {
settings = {
border_width = 2;
window_gap = 5;
borderless_monocle = true;