dotfiles/home/apps/fonts.nix

30 lines
690 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: {
2023-11-28 12:21:17 +01:00
config = lib.mkIf config.isGraphical {
home.activation = {
installCustomFonts = let
fontDirectory =
if pkgs.stdenv.isDarwin
then "${config.home.homeDirectory}/Library/Fonts"
else "${config.xdg.dataHome}/fonts";
fontPath = ../secrets/fonts;
in
lib.hm.dag.entryAfter ["writeBoundary"] ''
mkdir -p "${fontDirectory}"
install -Dm644 ${fontPath}/* "${fontDirectory}"
'';
};
home.packages = with pkgs; [
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
cascadia-code
victor-mono
ibm-plex
xkcd-font
];
};
2023-05-13 07:04:20 +02:00
}