From 7152b0bf09f56410ad4f39e22ef5f717322b370c Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 4 Jan 2025 13:00:29 +0100 Subject: [PATCH] nix: add nix-index --- flake.lock | 45 +++++++++++++++++++++++++++++++++------------ flake.nix | 5 +++++ 2 files changed, 38 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index 41ea256..137b9cb 100644 --- a/flake.lock +++ b/flake.lock @@ -134,11 +134,11 @@ "zig": "zig" }, "locked": { - "lastModified": 1735924432, - "narHash": "sha256-OxI6QxoMsKBBTaH+RNFPIE7kiqYyv8DnO1y8zLWK36g=", + "lastModified": 1735943291, + "narHash": "sha256-igXLrO0AtN7+k7VaR5zaHaPhDcS3go5NZr4liVqW9g4=", "owner": "ghostty-org", "repo": "ghostty", - "rev": "7eb35d72758a984c6c028272e6f53b7694e42b60", + "rev": "1baf8928a0bd6ccc2f49e1e9478baab71d49a018", "type": "github" }, "original": { @@ -221,11 +221,11 @@ ] }, "locked": { - "lastModified": 1735925111, - "narHash": "sha256-/NptDI4njO5hH0ZVQ2yzbvTXmBOabZaGYkjhnMJ37TY=", + "lastModified": 1735979091, + "narHash": "sha256-WpFjt6+8UD81EP386c269ZTqpEmlGJgcPw+OB4b7EBs=", "owner": "nix-community", "repo": "home-manager", - "rev": "ef64efdbaca99f9960f75efab991e4c49e79a5f1", + "rev": "11ab08541e61ac3bbf2ab27229f68622629401df", "type": "github" }, "original": { @@ -266,11 +266,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1735908283, - "narHash": "sha256-00Cd/KACX7Mr4ixz8rXksT4wteIStuExZIS22sA21ls=", + "lastModified": 1735972534, + "narHash": "sha256-FUp+Pke5Cj/rSldEnbGBIQ2VCHolBIqHKTD0CnzJp44=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "54dd5a7c0384fdcd11830e52f9896e457f189cb6", + "rev": "71933af08d74fad918521fb72af61bad20bb8f70", "type": "github" }, "original": { @@ -282,11 +282,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1735903221, - "narHash": "sha256-VrmQyDyR8y7x8QHSnX+Szs2ywZa7butk6lUdiNX5U3s=", + "lastModified": 1735929980, + "narHash": "sha256-vtnUEiVt9QtwUJTi/Vr8fCy+yAhYjY9BdLlsaDVrObc=", "owner": "neovim", "repo": "neovim", - "rev": "c26951b1d6d4d7ff8fe431e8bfb16744ff56af1c", + "rev": "a09c7a5d57ba2aca58fbc00e0b04a1437555a3c0", "type": "github" }, "original": { @@ -295,6 +295,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1735443188, + "narHash": "sha256-AydPpRBh8+NOkrLylG7vTsHrGO2b5L7XkMEL5HlzcA8=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "55ab1e1df5daf2476e6b826b69a82862dcbd7544", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1731890469, @@ -413,6 +433,7 @@ "home-manager": "home-manager", "jujutsu": "jujutsu", "neovim-nightly-overlay": "neovim-nightly-overlay", + "nix-index-database": "nix-index-database", "nixpkgs": "nixpkgs_3", "nixpkgs-stable": "nixpkgs-stable_2", "nixpkgs-unstable": "nixpkgs-unstable_2" diff --git a/flake.nix b/flake.nix index 25d23c1..7e3b30d 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,9 @@ nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + nix-index-database.url = "github:nix-community/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; + home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; @@ -28,6 +31,7 @@ outputs = inputs@{ self, + nix-index-database, nixpkgs, home-manager, ... @@ -55,6 +59,7 @@ }; modules = [ ./home/common + nix-index-database.hmModules.nix-index ] ++ modules; }; in