From be54cfd0b5f1cbdceaa5c58707e4381a8f449709 Mon Sep 17 00:00:00 2001 From: pompydev Date: Tue, 3 Jun 2025 12:49:51 +0900 Subject: [PATCH] migrate from github to forgejo --- {.github => .forgejo}/img/notes.avif | Bin {.github => .forgejo}/workflows/compile.yml | 0 README.md | 2 +- devenv.lock | 17 ++++++++--------- devenv.nix | 4 ++-- devenv.yaml | 2 +- src/_lib/cover.typ | 8 +++++--- 7 files changed, 17 insertions(+), 16 deletions(-) rename {.github => .forgejo}/img/notes.avif (100%) rename {.github => .forgejo}/workflows/compile.yml (100%) diff --git a/.github/img/notes.avif b/.forgejo/img/notes.avif similarity index 100% rename from .github/img/notes.avif rename to .forgejo/img/notes.avif diff --git a/.github/workflows/compile.yml b/.forgejo/workflows/compile.yml similarity index 100% rename from .github/workflows/compile.yml rename to .forgejo/workflows/compile.yml diff --git a/README.md b/README.md index fa70734..1e18464 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ These are digitized versions of cheat sheets/study notes I've been making since the early 2010s. Made with [Typst](https://typst.app/). -![](./.github/img/notes.avif) +![](./.forgejo/img/notes.avif) ## Progress diff --git a/devenv.lock b/devenv.lock index ec5350d..b4d8d20 100644 --- a/devenv.lock +++ b/devenv.lock @@ -74,17 +74,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1747060738, - "owner": "nixos", - "repo": "nixpkgs", - "rev": "eaeed9530c76ce5f1d2d8232e08bec5e26f18ec1", - "type": "github" + "lastModified": 1748302001, + "ref": "refs/heads/master", + "rev": "d9dd002a294e676c49e27eae9166f73bd2ae5684", + "revCount": 806557, + "type": "git", + "url": "https://git.pompy.dev/pomp/nixpkgs" }, "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" + "type": "git", + "url": "https://git.pompy.dev/pomp/nixpkgs" } }, "root": { diff --git a/devenv.nix b/devenv.nix index bf2f3e9..320a2b7 100644 --- a/devenv.nix +++ b/devenv.nix @@ -3,8 +3,8 @@ let fontsOverlay = import ( builtins.fetchTarball { - url = "https://github.com/pompydev/nix-google-fonts-overlay/archive/fc0690302d895d6813a51bcd918442f7dc9db49a.tar.gz"; - sha256 = "sha256:1mvhxl20vbccwzcr55ghlxnr8fnanbzh3jy7l4k2mzin4vmz4qan"; + url = "https://git.pompy.dev/pomp/nix-google-fonts-overlay/archive/1c39bc6d96ecfba3ba355c979e288dde1c953678.tar.gz"; + sha256 = "sha256:1cwkvynskgkpr2kzkq9gpf1haxxlw97r0rzl33vi3i1vlzyy224k"; } ); in diff --git a/devenv.yaml b/devenv.yaml index 397b9cb..293ed3c 100644 --- a/devenv.yaml +++ b/devenv.yaml @@ -2,6 +2,6 @@ inputs: nixpkgs: - url: github:nixos/nixpkgs/nixpkgs-unstable + url: git+https://git.pompy.dev/pomp/nixpkgs allowUnfree: true diff --git a/src/_lib/cover.typ b/src/_lib/cover.typ index 347aa21..35e85a3 100644 --- a/src/_lib/cover.typ +++ b/src/_lib/cover.typ @@ -1,4 +1,4 @@ -#import "@preview/fontawesome:0.5.0": fa-github +#import "@preview/fontawesome:0.5.0": fa-git-alt #import "@preview/tiaoma:0.3.0" #let cover( @@ -6,7 +6,9 @@ slug: str, ) = { let HEAD = read("../../.git/refs/heads/master").trim() - let gh = "https://github.com/pompydev/cheatsheets/blob/" + HEAD + "/src/" + slug + "/" + slug + ".typ" + let gh = ( + "https://git.pompy.dev/pomp/cheatsheets/src/commit/" + HEAD + "/src/" + slug + "/" + slug + ".typ" + ) align( center, @@ -24,7 +26,7 @@ gutter: 1fr, [ #align(top)[ - #link(gh)[#fa-github() pompydev/cheatsheets]\ + #link(gh)[#fa-git-alt() pomp/cheatsheets]\ git revision: #HEAD.slice(0, 7)\ made with #link("https://github.com/typst/typst")[Typst] // https://typst.app/legal/brand/ ]