initial commit
This commit is contained in:
17
modules/home/fonts.nix
Normal file
17
modules/home/fonts.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
stateFile = "${config.home.homeDirectory}/.config/home-manager/font-state.nix";
|
||||
activeFont = if builtins.pathExists stateFile then
|
||||
lib.removeSuffix "\n" (builtins.readFile stateFile)
|
||||
else "JetBrainsMono Nerd Font";
|
||||
in
|
||||
{
|
||||
options.nomarchy.fonts = {
|
||||
monospace = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = activeFont;
|
||||
description = "Monospace font for the system";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user