From d8f045d69e3c57533254167f90431758a05d77d7 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Sat, 22 Nov 2025 15:47:02 +0530 Subject: [PATCH] feat(flakes): update crates.io-index --- flake.lock | 36 ++++++++++++++++++++++++++++++++ flake.nix | 1 + home/apps/default.nix | 1 + home/apps/tsukimi.nix | 5 +++++ nixos/default.nix | 1 + nixos/mirai/services/default.nix | 4 ++-- 6 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 home/apps/tsukimi.nix diff --git a/flake.lock b/flake.lock index a81d50ce..770a9692 100644 --- a/flake.lock +++ b/flake.lock @@ -592,6 +592,23 @@ "type": "github" } }, + "crates-io-index_2": { + "flake": false, + "locked": { + "lastModified": 1763363725, + "narHash": "sha256-cxr5xIKZFP45yV1ZHFTB1sHo5YGiR3FA8D9vAfDizMo=", + "ref": "refs/heads/master", + "rev": "0382002e816a4cbd17d8d5b172f08b848aa22ff6", + "shallow": true, + "type": "git", + "url": "https://github.com/rust-lang/crates.io-index" + }, + "original": { + "shallow": true, + "type": "git", + "url": "https://github.com/rust-lang/crates.io-index" + } + }, "crates-nix": { "inputs": { "crates-io-index": [ @@ -613,6 +630,24 @@ "type": "github" } }, + "crates-nix_2": { + "inputs": { + "crates-io-index": "crates-io-index_2" + }, + "locked": { + "lastModified": 1763364255, + "narHash": "sha256-uHP6YjKDWVaWqcmb/LOxEdZlkVWBvspXqx4+LC1zJsE=", + "owner": "uttarayan21", + "repo": "crates.nix", + "rev": "13d09f3b04e31d2ab3cfbe47540cb425eaf9b750", + "type": "github" + }, + "original": { + "owner": "uttarayan21", + "repo": "crates.nix", + "type": "github" + } + }, "csshacks": { "flake": false, "locked": { @@ -3324,6 +3359,7 @@ "anyrun-rink": "anyrun-rink", "arion": "arion", "command-runner": "command-runner", + "crates-nix": "crates-nix_2", "csshacks": "csshacks", "d2": "d2", "ddcbacklight": "ddcbacklight", diff --git a/flake.nix b/flake.nix index 2709ce57..85d81f79 100644 --- a/flake.nix +++ b/flake.nix @@ -243,6 +243,7 @@ url = "path:/home/servius/Projects/handoff"; inputs.nixpkgs.follows = "nixpkgs"; }; + crates-nix.url = "github:uttarayan21/crates.nix"; }; outputs = { diff --git a/home/apps/default.nix b/home/apps/default.nix index 9b339393..3c5c984e 100644 --- a/home/apps/default.nix +++ b/home/apps/default.nix @@ -38,5 +38,6 @@ lib.optionalAttrs device.hasGui { ./zed.nix ./zen.nix ./vial.nix + ./tsukimi.nix ]; } diff --git a/home/apps/tsukimi.nix b/home/apps/tsukimi.nix new file mode 100644 index 00000000..86dc3276 --- /dev/null +++ b/home/apps/tsukimi.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + tsukimi + ]; +} diff --git a/nixos/default.nix b/nixos/default.nix index cf9e2404..647bc1d4 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -12,6 +12,7 @@ inherit device inputs; stablePkgs = inputs.nixpkgs-stable.legacyPackages.${device.system}; lanzaboote = inputs.lanzaboote; + cratesNix = inputs.crates-nix.mkLib {pkgs = nixpkgs.legacyPackages.${device.system};}; }; modules = [ inputs.arion.nixosModules.arion diff --git a/nixos/mirai/services/default.nix b/nixos/mirai/services/default.nix index 38e669ce..17073909 100644 --- a/nixos/mirai/services/default.nix +++ b/nixos/mirai/services/default.nix @@ -6,11 +6,12 @@ ./excalidraw.nix ./fail2ban.nix ./flaresolverr.nix + ./games ./gitea.nix ./homepage.nix + # ./immich.nix ./immich.nix # ./llama.nix - # ./immich.nix ./lldap.nix ./monitoring.nix ./nextcloud.nix @@ -18,7 +19,6 @@ ./resolved.nix ./searxng.nix ./tailscale.nix - ./games # ./paperless.nix ]; services = {