theming: [FIX] evaluation error when not enabling theme option
parent
ea59147fcd
commit
5af6008c7d
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue