Working on reshuffling

This commit is contained in:
2026-03-19 12:07:54 +00:00
parent b27c253f69
commit 0b944fe1d3
2 changed files with 14 additions and 10 deletions
+7 -5
View File
@@ -1,18 +1,20 @@
{ lib, pkgs, ... }:
let
# Program name (for myApps container)
programName = "fonts";
enableProgram = true; # default ON, can be toggled per module
# Enable toggle (default ON)
enableProgram = true;
in
{
# Top-level toggle
options.enable${lib.str.capitalize programName} =
lib.mkEnableOption "Enable system fonts";
# Top-level toggle for this program
options.enableFonts = lib.mkEnableOption "Enable system fonts";
# Wrap everything in config if enabled
config = lib.mkIf enableProgram {
myApps = {
${programName} = {
fonts = {
enable = true;
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)