Compare commits
2 Commits
700aff2987
...
c63fce4071
| Author | SHA1 | Date | |
|---|---|---|---|
| c63fce4071 | |||
| fb0461927b |
+13
-3
@@ -983,10 +983,20 @@ Setting up GTK
|
||||
This file installs and configures fonts
|
||||
#+BEGIN_SRC nix :tangle generated/modules/desktop/fonts.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
options.mySystem.desktop.fonts.enable = lib.mkEnableOption "Enable system fonts";
|
||||
|
||||
config = lib.mkIf (lib.getOption "mySystem.desktop.fonts.enable") {
|
||||
let
|
||||
programName = "fonts";
|
||||
|
||||
# Enable toggle for this module
|
||||
enableProgram = true;
|
||||
in
|
||||
{
|
||||
# Top-level toggle
|
||||
options.enableFonts =
|
||||
lib.mkEnableOption "Enable system fonts";
|
||||
|
||||
# Apply configuration if enabled
|
||||
config = lib.mkIf enableProgram {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.iosevka
|
||||
nerd-fonts.fira-code
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
options.mySystem.desktop.fonts.enable = lib.mkEnableOption "Enable system fonts";
|
||||
|
||||
config = lib.mkIf (lib.getOption "mySystem.desktop.fonts.enable") {
|
||||
let
|
||||
programName = "fonts";
|
||||
|
||||
# Enable toggle for this module
|
||||
enableProgram = true;
|
||||
in
|
||||
{
|
||||
# Top-level toggle
|
||||
options.enableFonts =
|
||||
lib.mkEnableOption "Enable system fonts";
|
||||
|
||||
# Apply configuration if enabled
|
||||
config = lib.mkIf enableProgram {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.iosevka
|
||||
nerd-fonts.fira-code
|
||||
|
||||
Reference in New Issue
Block a user