Working on reshuffling
This commit is contained in:
1 parent
452f894248
commit
708eeb8475
2 files changed
+22
-30
No files matched your search
@@ -1,19 +1,15 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{ # The function defining the NixOS module
|
||||
flake.nixosModules.fonts = { config, lib, pkgs, ... }:
|
||||
{
|
||||
# Define enable option
|
||||
options.mySystem.desktop.fonts.enable =
|
||||
lib.mkEnableOption "Enable nerd-fonts";
|
||||
|
||||
{
|
||||
# Define an enable option
|
||||
options.mySystem.desktop.fonts.enable =
|
||||
lib.mkEnableOption "Enable nerd-fonts";
|
||||
|
||||
# Only apply config if enabled
|
||||
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.iosevka
|
||||
nerd-fonts.fira-code
|
||||
];
|
||||
};
|
||||
# Apply only if enabled
|
||||
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.iosevka
|
||||
nerd-fonts.fira-code
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user