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