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

This commit is contained in:
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; cfg = config.my.theming;
in in
{ {
config = mkIf (cfg.scheme == "catppuccin-frappe") config = mkIf (cfg.enable && cfg.scheme == "catppuccin-frappe")
(import ./catppuccin.nix (import ./catppuccin.nix
{ {
inherit config lib pkgs; inherit config lib pkgs;

View file

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

View file

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

View file

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

View file

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

View file

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