From da7c4fe6528ffb3a8cca8e46beeab344349c77ce Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 15 Oct 2025 08:34:28 -0500 Subject: [PATCH] add seaches to nix pkgs and options as well as hm options to glance search --- flake.lock | 13 +++++++------ flake.nix | 4 ++-- modules/homelab/glance/default.nix | 21 ++++++++++++++++++--- 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 2d403f1..1b62d82 100644 --- a/flake.lock +++ b/flake.lock @@ -158,20 +158,21 @@ "flake-parts": "flake-parts", "mnw": "mnw", "nixpkgs": [ - "nixpkgs-unstable" + "nixpkgs" ], "systems": "systems" }, "locked": { - "lastModified": 1760153667, - "narHash": "sha256-F7KmXT/Izse6Q6CkD5GCImoGPaDJxl03Kd7eD+eY/bU=", - "owner": "NotAShelf", + "lastModified": 1760374571, + "narHash": "sha256-M2lAawtTe+ASWhcHTiTxtI3ROic8bsNLNN3RvJ2ghew=", + "owner": "notashelf", "repo": "nvf", - "rev": "9df9d51fd9fc8f9a8fc377f984ea3b7ae796172d", + "rev": "3e48f13c3ce8372d00be2e27f313f2ed8da5bc82", "type": "github" }, "original": { - "owner": "NotAShelf", + "owner": "notashelf", + "ref": "v0.8", "repo": "nvf", "type": "github" } diff --git a/flake.nix b/flake.nix index 5ca3e38..9fb03fa 100644 --- a/flake.nix +++ b/flake.nix @@ -18,8 +18,8 @@ url = "github:Maroka-chan/VPN-Confinement"; }; nvf = { - url = "github:NotAShelf/nvf"; - inputs.nixpkgs.follows = "nixpkgs-unstable"; + url = "github:notashelf/nvf/v0.8"; + inputs.nixpkgs.follows = "nixpkgs"; }; copyparty.url = "github:9001/copyparty"; }; diff --git a/modules/homelab/glance/default.nix b/modules/homelab/glance/default.nix index 084bccb..2b5e6e1 100644 --- a/modules/homelab/glance/default.nix +++ b/modules/homelab/glance/default.nix @@ -186,20 +186,35 @@ in new-tab = true; bangs = [ { - title = "YouTube"; + title = "youtube"; shortcut = "!y"; url = "https://www.youtube.com/results?search_query={QUERY}"; } { - title = "Google"; + title = "google"; shortcut = "!g"; url = "https://www.google.com/search?q={QUERY}"; } { - title = "Github"; + title = "github"; shortcut = "!gh"; url = "https://github.com/search?q={QUERY}&type=repositories"; } + { + title = "nixos options"; + shortcut = "!no"; + url = "https://search.nixos.org/options?channel=25.05&query={QUERY}"; + } + { + title = "nixos packages"; + shortcut = "!np"; + url = "https://search.nixos.org/packages?channel=25.05&query={QUERY}"; + } + { + title = "home-manager options"; + shortcut = "!hm"; + url = "https://home-manager-options.extranix.com/?query={QUERY}&release=release-25.05"; + } ]; } {