From 006ce6f5d7fe35f4c3f1fd1080e9e8f89f82ff31 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Sun, 29 Dec 2024 18:51:34 -0500 Subject: [PATCH] template for ricing improvements --- modules/options.nix | 8 ++++++++ modules/users/crow/configs/waybar.nix | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/options.nix b/modules/options.nix index 6929989..23366e1 100644 --- a/modules/options.nix +++ b/modules/options.nix @@ -44,6 +44,10 @@ service = { note-sync.enable = lib.mkEnableOption "enable note sync to repo"; }; + + ricing = { + basic.enable = lib.mkEnableOption "enable basic ricing"; + }; }; # Set default option states in config @@ -88,5 +92,9 @@ service = { note-sync.enable = lib.mkDefault false; }; + + ricing = { + basic.enable = lib.mkDefault true; + }; }; } diff --git a/modules/users/crow/configs/waybar.nix b/modules/users/crow/configs/waybar.nix index 8ec7214..953fbcf 100644 --- a/modules/users/crow/configs/waybar.nix +++ b/modules/users/crow/configs/waybar.nix @@ -223,7 +223,7 @@ in { programs.waybar = { enable = true; - settings = og_waybar.jsonc; - style = og_waybar.style; + settings = if config.ricing.basic.enable then og_waybar else {}; + style = if config.ricing.basic.enable then og_waybar.style else ""; }; }