Working on reshuffling
This commit is contained in:
+7
-5
@@ -979,18 +979,20 @@ This file installs and configures fonts
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Program name (for myApps container)
|
||||||
programName = "fonts";
|
programName = "fonts";
|
||||||
enableProgram = true; # default ON, can be toggled per module
|
|
||||||
|
# Enable toggle (default ON)
|
||||||
|
enableProgram = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Top-level toggle
|
# Top-level toggle for this program
|
||||||
options.enable${lib.str.capitalize programName} =
|
options.enableFonts = lib.mkEnableOption "Enable system fonts";
|
||||||
lib.mkEnableOption "Enable system fonts";
|
|
||||||
|
|
||||||
# Wrap everything in config if enabled
|
# Wrap everything in config if enabled
|
||||||
config = lib.mkIf enableProgram {
|
config = lib.mkIf enableProgram {
|
||||||
myApps = {
|
myApps = {
|
||||||
${programName} = {
|
fonts = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)
|
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Program name (for myApps container)
|
||||||
programName = "fonts";
|
programName = "fonts";
|
||||||
enableProgram = true; # default ON, can be toggled per module
|
|
||||||
|
# Enable toggle (default ON)
|
||||||
|
enableProgram = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Top-level toggle
|
# Top-level toggle for this program
|
||||||
options.enable${lib.str.capitalize programName} =
|
options.enableFonts = lib.mkEnableOption "Enable system fonts";
|
||||||
lib.mkEnableOption "Enable system fonts";
|
|
||||||
|
|
||||||
# Wrap everything in config if enabled
|
# Wrap everything in config if enabled
|
||||||
config = lib.mkIf enableProgram {
|
config = lib.mkIf enableProgram {
|
||||||
myApps = {
|
myApps = {
|
||||||
${programName} = {
|
fonts = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)
|
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)
|
||||||
|
|||||||
Reference in New Issue
Block a user