diff --git a/docs/default.nix b/docs/default.nix index b72c46de..5070b4b1 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -2,7 +2,7 @@ system, nixvim, nixpkgs, - nuschtosSearch, + mkNuschtosSearch, }: let # We overlay a few tweaks into pkgs, for use in the docs @@ -114,7 +114,7 @@ lib.fix (self: { inherit nixvim lib; }; - search = nuschtosSearch.packages.mkSearch { + search = mkNuschtosSearch { optionsJSON = options-json + "/share/doc/nixos/options.json"; urlPrefix = "https://github.com/nix-community/nixvim/tree/main"; title = "Nixvim options search"; diff --git a/flake.lock b/flake.lock index 8ac93620..9e9a59ca 100644 --- a/flake.lock +++ b/flake.lock @@ -20,50 +20,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "ixx": { - "inputs": { - "flake-utils": [ - "nuschtosSearch", - "flake-utils" - ], - "nixpkgs": [ - "nuschtosSearch", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1754860581, - "narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=", - "owner": "NuschtOS", - "repo": "ixx", - "rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281", - "type": "github" - }, - "original": { - "owner": "NuschtOS", - "ref": "v0.1.1", - "repo": "ixx", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1764856222, @@ -80,34 +36,11 @@ "type": "github" } }, - "nuschtosSearch": { - "inputs": { - "flake-utils": "flake-utils", - "ixx": "ixx", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1761730856, - "narHash": "sha256-t1i5p/vSWwueZSC0Z2BImxx3BjoUDNKyC2mk24krcMY=", - "owner": "NuschtOS", - "repo": "search", - "rev": "e29de6db0cb3182e9aee75a3b1fd1919d995d85b", - "type": "github" - }, - "original": { - "owner": "NuschtOS", - "repo": "search", - "type": "github" - } - }, "root": { "inputs": { "flake-parts": "flake-parts", "nixpkgs": "nixpkgs", - "nuschtosSearch": "nuschtosSearch", - "systems": "systems_2" + "systems": "systems" } }, "systems": { @@ -124,21 +57,6 @@ "repo": "default", "type": "github" } - }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 99587382..6170ff2d 100644 --- a/flake.nix +++ b/flake.nix @@ -10,11 +10,6 @@ url = "github:hercules-ci/flake-parts"; inputs.nixpkgs-lib.follows = "nixpkgs"; }; - - nuschtosSearch = { - url = "github:NuschtOS/search"; - inputs.nixpkgs.follows = "nixpkgs"; - }; }; nixConfig = { diff --git a/flake/dev/flake.lock b/flake/dev/flake.lock index 6169218d..78b4d7c7 100644 --- a/flake/dev/flake.lock +++ b/flake/dev/flake.lock @@ -52,6 +52,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "git-hooks": { "inputs": { "flake-compat": [ @@ -117,6 +135,32 @@ "type": "github" } }, + "ixx": { + "inputs": { + "flake-utils": [ + "nuschtosSearch", + "flake-utils" + ], + "nixpkgs": [ + "nuschtosSearch", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1754860581, + "narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=", + "owner": "NuschtOS", + "repo": "ixx", + "rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281", + "type": "github" + }, + "original": { + "owner": "NuschtOS", + "ref": "v0.1.1", + "repo": "ixx", + "type": "github" + } + }, "nix-darwin": { "inputs": { "nixpkgs": [ @@ -137,6 +181,28 @@ "type": "github" } }, + "nuschtosSearch": { + "inputs": { + "flake-utils": "flake-utils", + "ixx": "ixx", + "nixpkgs": [ + "dev-nixpkgs" + ] + }, + "locked": { + "lastModified": 1761730856, + "narHash": "sha256-t1i5p/vSWwueZSC0Z2BImxx3BjoUDNKyC2mk24krcMY=", + "owner": "NuschtOS", + "repo": "search", + "rev": "e29de6db0cb3182e9aee75a3b1fd1919d995d85b", + "type": "github" + }, + "original": { + "owner": "NuschtOS", + "repo": "search", + "type": "github" + } + }, "root": { "inputs": { "dev-nixpkgs": "dev-nixpkgs", @@ -145,9 +211,25 @@ "git-hooks": "git-hooks", "home-manager": "home-manager", "nix-darwin": "nix-darwin", + "nuschtosSearch": "nuschtosSearch", "treefmt-nix": "treefmt-nix" } }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake/dev/flake.nix b/flake/dev/flake.nix index 56fdf5c9..d49a3a65 100644 --- a/flake/dev/flake.nix +++ b/flake/dev/flake.nix @@ -34,6 +34,11 @@ inputs.nixpkgs.follows = "dev-nixpkgs"; }; + nuschtosSearch = { + url = "github:NuschtOS/search"; + inputs.nixpkgs.follows = "dev-nixpkgs"; + }; + treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs.nixpkgs.follows = "dev-nixpkgs"; diff --git a/flake/packages.nix b/flake/packages.nix index 613289e6..33f173ed 100644 --- a/flake/packages.nix +++ b/flake/packages.nix @@ -1,9 +1,17 @@ -{ self, inputs, ... }: +{ + self, + config, + inputs, + ... +}: +let + # We use a flake input from the dev flake so that this doesn't end up in users' lockfiles. + inherit (config.partitions.dev.module.inputs) nuschtosSearch; +in { perSystem = { config, - inputs', system, ... }: @@ -15,7 +23,7 @@ nixvim = self; inherit system; inherit (inputs) nixpkgs; - inherit (inputs') nuschtosSearch; + mkNuschtosSearch = nuschtosSearch.packages.${system}.mkSearch; }; }; }