From 0992f2f308a2db893c6add6f593bd02e344b5d04 Mon Sep 17 00:00:00 2001 From: cy Date: Thu, 13 Feb 2025 21:49:45 -0500 Subject: [PATCH] enable appimage, overlay anki --- flake.lock | 17 +++++++++++++++++ flake.nix | 3 +++ home/codium.nix | 6 +++--- hosts/ytnix/default.nix | 5 +++++ overlay/default.nix | 1 + 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index b36b229..5f4fb3a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "anki": { + "locked": { + "lastModified": 1739471491, + "narHash": "sha256-ZCKWgsNqKWkVOAQFaFSmK3EN/uDdamNOcSItzvooWYs=", + "owner": "cything", + "repo": "nixpkgs", + "rev": "1562f5286858b3c1e5ea7e60f4bf6b3578519248", + "type": "github" + }, + "original": { + "owner": "cything", + "repo": "nixpkgs", + "rev": "1562f5286858b3c1e5ea7e60f4bf6b3578519248", + "type": "github" + } + }, "attic": { "inputs": { "crane": "crane", @@ -1265,6 +1281,7 @@ }, "root": { "inputs": { + "anki": "anki", "conduwuit": "conduwuit", "crane": "crane_2", "disko": "disko", diff --git a/flake.nix b/flake.nix index 9ef5b79..b9d76bf 100644 --- a/flake.nix +++ b/flake.nix @@ -100,6 +100,9 @@ flake-utils.url = "github:numtide/flake-utils"; crane.url = "github:ipetkov/crane"; flake-compat.url = "github:edolstra/flake-compat"; + + # unmerged PRs + anki.url = "github:cything/nixpkgs/1562f5286858b3c1e5ea7e60f4bf6b3578519248"; }; nixConfig = { diff --git a/home/codium.nix b/home/codium.nix index accda10..a900df3 100644 --- a/home/codium.nix +++ b/home/codium.nix @@ -7,15 +7,15 @@ enableExtensionUpdateCheck = false; mutableExtensionsDir = false; extensions = + # if unfree + # (with pkgs.vscode-marketplace; [ (with pkgs.open-vsx; [ vscodevim.vim jnoortheen.nix-ide editorconfig.editorconfig github.github-vscode-theme rust-lang.rust-analyzer - ]) - ++ (with pkgs.vscode-marketplace; [ - github.codespaces + shd101wyy.markdown-preview-enhanced ]); userSettings = { "workbench.colorTheme" = "GitHub Dark Default"; diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 37b8763..cd3a38e 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -402,4 +402,9 @@ enable = true; enableQt5Integration = true; }; + + programs.appimage = { + enable = true; + binfmt = true; + }; } diff --git a/overlay/default.nix b/overlay/default.nix index 219f1ad..5695d30 100644 --- a/overlay/default.nix +++ b/overlay/default.nix @@ -20,6 +20,7 @@ importedOverlays lldb = pkgFrom stable "lldb"; calibre = pkgFrom stable "calibre"; nil = inputs.nil.packages.${prev.system}.nil; + anki = pkgFrom inputs.anki "anki-bin"; } ) ]