mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: update ryan-mono
This commit is contained in:
parent
244e1bd427
commit
b1984a512c
3 changed files with 46 additions and 41 deletions
|
|
@ -10,32 +10,32 @@
|
||||||
"bierner.lit-html"
|
"bierner.lit-html"
|
||||||
"bmalehorn.vscode-fish"
|
"bmalehorn.vscode-fish"
|
||||||
"bradlc.vscode-tailwindcss"
|
"bradlc.vscode-tailwindcss"
|
||||||
"Catppuccin.catppuccin-vsc"
|
"catppuccin.catppuccin-vsc"
|
||||||
# "Catppuccin.catppuccin-vsc-icons"
|
"catppuccin.catppuccin-vsc-icons"
|
||||||
"charliermarsh.ruff"
|
"charliermarsh.ruff"
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint"
|
||||||
"denoland.vscode-deno"
|
"denoland.vscode-deno"
|
||||||
"dprint.dprint"
|
"dprint.dprint"
|
||||||
"DotJoshJohnson.xml"
|
"dotjoshjohnson.xml"
|
||||||
"eamodio.gitlens"
|
"eamodio.gitlens"
|
||||||
"EditorConfig.EditorConfig"
|
"editorconfig.editorconfig"
|
||||||
"enkia.tokyo-night"
|
# "enkia.tokyo-night"
|
||||||
"esbenp.prettier-vscode"
|
"esbenp.prettier-vscode"
|
||||||
"github.vscode-github-actions"
|
"github.vscode-github-actions"
|
||||||
"GraphQL.vscode-graphql"
|
"graphql.vscode-graphql"
|
||||||
"GraphQL.vscode-graphql-syntax"
|
"graphql.vscode-graphql-syntax"
|
||||||
"golang.go"
|
"golang.go"
|
||||||
"griimick.vhs"
|
"griimick.vhs"
|
||||||
"LeonardSSH.vscord"
|
"leonardssh.vscord"
|
||||||
# "jdinhlife.gruvbox"
|
# "jdinhlife.gruvbox"
|
||||||
"jnoortheen.nix-ide"
|
"jnoortheen.nix-ide"
|
||||||
"miguelsolorio.symbols"
|
# "miguelsolorio.symbols"
|
||||||
"ms-python.isort"
|
"ms-python.isort"
|
||||||
"ms-python.vscode-pylance"
|
"ms-python.vscode-pylance"
|
||||||
"ms-python.python"
|
"ms-python.python"
|
||||||
# "mvllow.rose-pine"
|
# "mvllow.rose-pine"
|
||||||
"nvarner.typst-lsp"
|
"nvarner.typst-lsp"
|
||||||
"Prisma.prisma"
|
"prisma.prisma"
|
||||||
"ronnidc.nunjucks"
|
"ronnidc.nunjucks"
|
||||||
"rust-lang.rust-analyzer"
|
"rust-lang.rust-analyzer"
|
||||||
"sastan.twind-intellisense"
|
"sastan.twind-intellisense"
|
||||||
|
|
@ -45,16 +45,16 @@
|
||||||
"timonwong.shellcheck"
|
"timonwong.shellcheck"
|
||||||
"unifiedjs.vscode-mdx"
|
"unifiedjs.vscode-mdx"
|
||||||
"usernamehw.errorlens"
|
"usernamehw.errorlens"
|
||||||
"Vue.volar"
|
"vue.volar"
|
||||||
"xaver.clang-format"
|
"xaver.clang-format"
|
||||||
"YoavBls.pretty-ts-errors"
|
"yoavbls.pretty-ts-errors"
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.stdenv.mkDerivation {
|
package = pkgs.stdenv.mkDerivation {
|
||||||
pname = "vscode";
|
pname = "vscode";
|
||||||
version = "1.85.2";
|
version = "1.86.2";
|
||||||
src = pkgs.emptyDirectory;
|
src = pkgs.emptyDirectory;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
|
@ -65,9 +65,8 @@ in {
|
||||||
mutableExtensionsDir = true;
|
mutableExtensionsDir = true;
|
||||||
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"workbench.colorTheme" = "Tokyo Night";
|
"workbench.colorTheme" = "Catppuccin Frappé";
|
||||||
"workbench.iconTheme" = "symbols";
|
"workbench.iconTheme" = "catppuccin-frappe";
|
||||||
"workbench.productIconTheme" = "icons-carbon";
|
|
||||||
"workbench.sideBar.location" = "left";
|
"workbench.sideBar.location" = "left";
|
||||||
"workbench.activityBar.location" = "top";
|
"workbench.activityBar.location" = "top";
|
||||||
|
|
||||||
|
|
@ -76,11 +75,15 @@ in {
|
||||||
"catppuccin.boldKeywords" = false;
|
"catppuccin.boldKeywords" = false;
|
||||||
"catppuccin.italicKeywords" = true;
|
"catppuccin.italicKeywords" = true;
|
||||||
"catppuccin.accentColor" = "sky";
|
"catppuccin.accentColor" = "sky";
|
||||||
"catppuccin.workbenchMode" = "default";
|
"catppuccin.workbenchMode" = "flat";
|
||||||
"catppuccin.customUIColors" = {
|
"catppuccin.customUIColors" = {
|
||||||
"all" = {
|
"all" = {
|
||||||
"activityBar.activeBorder" = "accent";
|
"activityBar.activeBorder" = "accent";
|
||||||
"statusBarItem.remoteBackground" = "accent";
|
"statusBarItem.remoteBackground" = "accent";
|
||||||
|
"activityBarTop.foreground" = "text";
|
||||||
|
"activityBarTop.inactiveForeground" = "subtext1";
|
||||||
|
"activityBarTop.activeBorder" = "accent";
|
||||||
|
"activityBarTop.dropBorder" = "accent";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -92,7 +95,7 @@ in {
|
||||||
"diffEditor.ignoreTrimWhitespace" = false;
|
"diffEditor.ignoreTrimWhitespace" = false;
|
||||||
"gitlens.showWelcomeOnInstall" = false;
|
"gitlens.showWelcomeOnInstall" = false;
|
||||||
|
|
||||||
"editor.fontFamily" = "\"RyanMono Nerd Font\", monospace";
|
"editor.fontFamily" = "\"Ryan Mono\", \"Symbols Nerd Font\", \"Apple Color Emoji\", monospace";
|
||||||
"editor.fontLigatures" = true;
|
"editor.fontLigatures" = true;
|
||||||
# "editor.fontLigatures" = "'calt', 'ss01'";
|
# "editor.fontLigatures" = "'calt', 'ss01'";
|
||||||
"editor.fontSize" = 16;
|
"editor.fontSize" = 16;
|
||||||
|
|
@ -108,7 +111,7 @@ in {
|
||||||
"editor.insertSpaces" = true;
|
"editor.insertSpaces" = true;
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
|
|
||||||
"terminal.integrated.fontFamily" = "\"RyanTerm Nerd Font\", monospace";
|
"terminal.integrated.fontFamily" = "\"Ryan Term\", \"Symbols Nerd Font\", \"Apple Color Emoji\", monospace";
|
||||||
"terminal.integrated.fontSize" = 14;
|
"terminal.integrated.fontSize" = 14;
|
||||||
"terminal.integrated.lineHeight" = 1.5;
|
"terminal.integrated.lineHeight" = 1.5;
|
||||||
"terminal.integrated.cursorBlinking" = true;
|
"terminal.integrated.cursorBlinking" = true;
|
||||||
|
|
@ -116,19 +119,20 @@ in {
|
||||||
"terminal.integrated.inheritEnv" = false;
|
"terminal.integrated.inheritEnv" = false;
|
||||||
"terminal.integrated.shellIntegration.enabled" = true;
|
"terminal.integrated.shellIntegration.enabled" = true;
|
||||||
|
|
||||||
|
"editor.defaultFormatter" = "esbenp.prettier-vscode";
|
||||||
|
|
||||||
"javascript.preferGoToSourceDefinition" = true;
|
"javascript.preferGoToSourceDefinition" = true;
|
||||||
"typescript.preferGoToSourceDefinition" = true;
|
"typescript.preferGoToSourceDefinition" = true;
|
||||||
|
"typescript.enablePromptUseWorkspaceTsdk" = true;
|
||||||
|
|
||||||
"shellcheck.ignorePatterns" = {
|
"eslint.experimental.useFlatConfig" = true;
|
||||||
".envrc" = true;
|
|
||||||
};
|
"shellcheck.ignorePatterns".".envrc" = true;
|
||||||
"editor.defaultFormatter" = "esbenp.prettier-vscode";
|
|
||||||
"tailwindCSS.includeLanguages" = {
|
"tailwindCSS.includeLanguages" = {
|
||||||
"typescript" = "javascript";
|
"typescript" = "javascript";
|
||||||
"typescriptreact" = "javascript";
|
"typescriptreact" = "javascript";
|
||||||
"vue-html" = "html";
|
"vue-html" = "html";
|
||||||
};
|
};
|
||||||
"typescript.enablePromptUseWorkspaceTsdk" = true;
|
|
||||||
|
|
||||||
"telemetry.telemetryLevel" = "off";
|
"telemetry.telemetryLevel" = "off";
|
||||||
"workbench.enableExperiments" = false;
|
"workbench.enableExperiments" = false;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ _: {
|
||||||
|
|
||||||
brews = [
|
brews = [
|
||||||
"pandoc"
|
"pandoc"
|
||||||
|
"fontforge"
|
||||||
|
"ttfautohint"
|
||||||
];
|
];
|
||||||
|
|
||||||
casks = let
|
casks = let
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(_: prev: let
|
(_: prev: let
|
||||||
version = "2023.11.26";
|
version = "2024.02.15";
|
||||||
|
|
||||||
mkFontVariant = {
|
mkFontVariant = {
|
||||||
variant,
|
variant,
|
||||||
|
|
@ -8,38 +8,37 @@
|
||||||
prev.callPackage ({
|
prev.callPackage ({
|
||||||
lib,
|
lib,
|
||||||
fetchzip,
|
fetchzip,
|
||||||
|
stdenvNoCC,
|
||||||
}:
|
}:
|
||||||
fetchzip rec {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = variant;
|
pname = variant;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
url = "https://github.com/ryanccn/ryan-mono/releases/download/${version}/${variant}.zip";
|
src = fetchzip {
|
||||||
|
url = "https://github.com/ryanccn/ryan-mono/releases/download/v${version}/${variant}.tar.xz";
|
||||||
stripRoot = false;
|
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 hash;
|
inherit hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
mkdir -p "$out"/share/fonts/truetype
|
||||||
|
cp *.ttf "$out"/share/fonts/truetype
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ryanccn/ryan-mono";
|
homepage = "https://github.com/ryanccn/ryan-mono";
|
||||||
description = "Iosevka with customizations and Nerd Font patches";
|
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
license = licenses.ofl;
|
||||||
};
|
};
|
||||||
}) {};
|
}) {};
|
||||||
in {
|
in {
|
||||||
ryan-mono-bin = mkFontVariant {
|
ryan-mono-bin = mkFontVariant {
|
||||||
variant = "ryan-mono";
|
variant = "RyanMono";
|
||||||
hash = "sha256-hA9Z1SOD9Ij1sPSyHXg9SUMPuJqKnocYfXwCTMAgJJU=";
|
hash = "sha256-9ojd6qCMf+lGa//5ZmY/ob6sbJvkBLqWTjyz7I5Yr4M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
ryan-term-bin = mkFontVariant {
|
ryan-term-bin = mkFontVariant {
|
||||||
variant = "ryan-term";
|
variant = "RyanTerm";
|
||||||
hash = "sha256-j/1wvyN60m7SlUV0c6tk2jgj53EEgWEJMcCOvbrAkVI=";
|
hash = "sha256-23+qURL4jBzsnyglPrYYF2pBTkp/WpzR9GQ2nbuJC4E=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue