Working on reshuffling

This commit is contained in:
2026-03-19 12:09:00 +00:00
parent 0b944fe1d3
commit 5d071eaa7d
2 changed files with 28 additions and 22 deletions
+14 -11
View File
@@ -976,32 +976,35 @@ Setting up GTK
** =generated/modules/desktop/fonts.nix=
This file installs and configures fonts
#+BEGIN_SRC nix :tangle generated/modules/desktop/fonts.nix :noweb tangle :mkdirp yes :eval never-html
{ 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";
};
};
+14 -11
View File
@@ -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";
};
};