Working on reshuffling
This commit is contained in:
@@ -1,29 +1,32 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
# Program name (for myApps container)
|
||||
# Program-specific info
|
||||
programName = "fonts";
|
||||
|
||||
# Enable toggle (default ON)
|
||||
# Enable toggle for this module (default ON)
|
||||
enableProgram = true;
|
||||
|
||||
# Example symbolic references to fonts (avoid pkgs if possible)
|
||||
fontPackages = [
|
||||
"nerd-fonts.iosevka"
|
||||
"nerd-fonts.fira-code"
|
||||
];
|
||||
in
|
||||
{
|
||||
# Top-level toggle for this program
|
||||
options.enableFonts = lib.mkEnableOption "Enable system fonts";
|
||||
|
||||
# Wrap everything in config if enabled
|
||||
# Wrap all configuration in mkIf so nothing is applied unless enabled
|
||||
config = lib.mkIf enableProgram {
|
||||
|
||||
# Top-level container for your apps/services
|
||||
myApps = {
|
||||
fonts = {
|
||||
enable = true;
|
||||
packages = fontPackages;
|
||||
|
||||
# Fonts packages (do not reference pkgs directly if you want symbolic pathing)
|
||||
packages = [
|
||||
"nerd-fonts.iosevka"
|
||||
"nerd-fonts.fira-code"
|
||||
];
|
||||
|
||||
# Optional: user
|
||||
# Optional: user, defaults to global defaultUser
|
||||
user = config.defaultUser or "henrov";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user