mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: manage ryan-mono with hm
This commit is contained in:
parent
e0b8313df9
commit
0938aa162e
3 changed files with 51 additions and 1 deletions
6
home.nix
6
home.nix
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
agenixModule,
|
agenixModule,
|
||||||
ctpModule,
|
ctpModule,
|
||||||
|
|
@ -19,7 +20,10 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home.packages = [];
|
home.packages = with pkgs; [
|
||||||
|
ryan-mono-bin
|
||||||
|
ryan-term-bin
|
||||||
|
];
|
||||||
|
|
||||||
catppuccin.flavour = "frappe";
|
catppuccin.flavour = "frappe";
|
||||||
|
|
||||||
|
|
|
||||||
45
overlays/ryan-mono-bin.nix
Normal file
45
overlays/ryan-mono-bin.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
(_: prev: let
|
||||||
|
version = "2023.07.25";
|
||||||
|
|
||||||
|
mkFontVariant = {
|
||||||
|
variant,
|
||||||
|
sha256,
|
||||||
|
}:
|
||||||
|
prev.callPackage ({
|
||||||
|
lib,
|
||||||
|
fetchzip,
|
||||||
|
}:
|
||||||
|
fetchzip rec {
|
||||||
|
pname = variant;
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
url = "https://github.com/ryanccn/ryan-mono/releases/download/${version}/${variant}.zip";
|
||||||
|
stripRoot = false;
|
||||||
|
|
||||||
|
postFetch = ''
|
||||||
|
postDir="$TMPDIR/post"
|
||||||
|
mkdir -p $postDir
|
||||||
|
mv $out/* $postDir
|
||||||
|
mkdir -p $out/share/fonts/truetype
|
||||||
|
mv $postDir/*.ttf $out/share/fonts/truetype
|
||||||
|
'';
|
||||||
|
|
||||||
|
inherit sha256;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/ryanccn/ryan-mono";
|
||||||
|
description = "Iosevka with customizations and Nerd Font patches";
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}) {};
|
||||||
|
in {
|
||||||
|
ryan-mono-bin = mkFontVariant {
|
||||||
|
variant = "ryan-mono";
|
||||||
|
sha256 = "sha256-u8Ex7PgPxQVQt4VSQMsvpcO2g3Ma/75NAxIn3tATf5w=";
|
||||||
|
};
|
||||||
|
|
||||||
|
ryan-term-bin = mkFontVariant {
|
||||||
|
variant = "ryan-term";
|
||||||
|
sha256 = "sha256-VmgmZFIPD7mLl1ATR1nlQN+qzFHXkopj8XZg97VgtlU=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
@ -88,6 +88,7 @@
|
||||||
agenix.overlays.default
|
agenix.overlays.default
|
||||||
fenix.overlays.default
|
fenix.overlays.default
|
||||||
(import ./overlays/gen-license.nix)
|
(import ./overlays/gen-license.nix)
|
||||||
|
(import ./overlays/ryan-mono-bin.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue