init anki overlay

Signed-off-by: cy <cy@cy7.sh>
This commit is contained in:
cy 2025-01-27 04:38:31 -05:00
parent 61b1399131
commit 3902a82d89
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
4 changed files with 32 additions and 3 deletions

17
flake.lock generated
View file

@ -1,5 +1,21 @@
{ {
"nodes": { "nodes": {
"anki": {
"flake": false,
"locked": {
"lastModified": 1737901258,
"narHash": "sha256-OCZ3q9b/lo+JNIKRoVur87Dsl7RArJz3qZHg9Q3JvkE=",
"owner": "ankitects",
"repo": "anki",
"rev": "b65fa693dacbd92c0bdd2a8c3800d0827432d108",
"type": "github"
},
"original": {
"owner": "ankitects",
"repo": "anki",
"type": "github"
}
},
"attic": { "attic": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
@ -1196,6 +1212,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"anki": "anki",
"conduwuit": "conduwuit", "conduwuit": "conduwuit",
"crane": "crane_2", "crane": "crane_2",
"disko": "disko", "disko": "disko",

View file

@ -75,6 +75,10 @@
url = "github:projekt0n/github-nvim-theme"; url = "github:projekt0n/github-nvim-theme";
flake = false; flake = false;
}; };
anki = {
url = "github:ankitects/anki";
flake = false;
};
# deduplication # deduplication
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
@ -152,7 +156,7 @@
overlays = [ overlays = [
inputs.niri.overlays.niri inputs.niri.overlays.niri
inputs.rust-overlay.overlays.default inputs.rust-overlay.overlays.default
] ++ import ./overlay; ] ++ import ./overlay inputs;
}; };
in in
{ {

6
overlay/anki.nix Normal file
View file

@ -0,0 +1,6 @@
inputs: final: prev: {
anki = prev.anki.overrideAttrs (old: {
version = "25.01";
src = inputs.anki;
});
}

View file

@ -1,8 +1,10 @@
let inputs: let
overlays = [ overlays = [
./conduwuit ./conduwuit
./attic ./attic
]; ];
importedOverlays = map (m: import m) overlays; importedOverlays = map (m: import m) overlays;
in in
importedOverlays importedOverlays ++ [
(import ./anki.nix inputs)
]