feat(fonts): init

This commit is contained in:
2025-11-22 23:37:41 -07:00
parent 589c74881d
commit b3d96f4ac3
2 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.msyds.fonts;
in {
options.sydnix.users.msyds.fonts = {
enable = lib.mkEnableOption "Fontconfig and some fonts";
};
config = lib.mkIf cfg.enable {
fonts.fontconfig.enable = true;
home.packages = [
(pkgs.stdenv.mkDerivation rec {
pname = "berkeley-mono";
version = "2.002";
src = pkgs.fetchzip {
url = "https://deertopia.net/~msyds/berkeley-mono-${version}.zip";
hash = "sha256-o/G9+IXTGrr0lMLiq13nhIKZ2NfXkR6wd72W+d7Stqw=";
stripRoot = false;
};
installPhase = ''
mkdir -p $out/share/fonts/truetype/berkeley-mono
cp -r *.ttf $out/share/fonts/truetype/berkeley-mono
'';
})
pkgs.noto-fonts-cjk-sans
];
};
}

View File

@@ -19,8 +19,6 @@
home.file.".ssh/id_ed25519.pub".source = home.file.".ssh/id_ed25519.pub".source =
../../public-keys/ssh/crumb-at-nixos-testbed.pub; ../../public-keys/ssh/crumb-at-nixos-testbed.pub;
fonts.fontconfig.enable = true;
sydnix = { sydnix = {
xdg.enable = true; xdg.enable = true;
# Personal configurations. # Personal configurations.
@@ -35,6 +33,7 @@
emacs.enable = true; emacs.enable = true;
impermanence.enable = true; impermanence.enable = true;
syncthing.enable = false; syncthing.enable = false;
fonts.enable = true;
}; };
}; };