2023-05-14 12:26:55 +02:00
|
|
|
{
|
|
|
|
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-14 12:26:55 +02:00
|
|
|
};
|
2023-05-13 07:04:20 +02:00
|
|
|
}
|