Working on reshuffling
This commit is contained in:
+7
-5
@@ -979,18 +979,20 @@ This file installs and configures fonts
|
||||
{ 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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user