Working on reshuffling

This commit is contained in:
2026-03-19 12:11:58 +00:00
parent 4b5de2fcff
commit 2ef92b69df
2 changed files with 24 additions and 6 deletions
+12 -3
View File
@@ -979,10 +979,19 @@ This file installs and configures fonts
{ lib, pkgs, ... }:
{
# Optional toggle for enabling fonts
options.enableFonts = lib.mkEnableOption "Enable nerd-fonts";
# Top-level option (toggle)
options = {
mySystem = {
desktop = {
fonts = {
enable = lib.mkEnableOption "Enable nerd-fonts";
};
};
};
};
config = lib.mkIf (config.enableFonts or false) {
# Apply configuration if enabled
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
fonts.packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.fira-code
+12 -3
View File
@@ -1,10 +1,19 @@
{ lib, pkgs, ... }:
{
# Optional toggle for enabling fonts
options.enableFonts = lib.mkEnableOption "Enable nerd-fonts";
# Top-level option (toggle)
options = {
mySystem = {
desktop = {
fonts = {
enable = lib.mkEnableOption "Enable nerd-fonts";
};
};
};
};
config = lib.mkIf (config.enableFonts or false) {
# Apply configuration if enabled
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
fonts.packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.fira-code