From 7ae06494568c3c61425310e1b86fc25644db2d9c Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 3 Nov 2022 11:26:31 -0400 Subject: [PATCH] nixpkgs shortcut registries --- modules/shell/fish/functions/fish_user_key_bindings.fish | 4 ++-- modules/shell/nixpkgs.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/shell/fish/functions/fish_user_key_bindings.fish b/modules/shell/fish/functions/fish_user_key_bindings.fish index 04a2915..4c1e991 100644 --- a/modules/shell/fish/functions/fish_user_key_bindings.fish +++ b/modules/shell/fish/functions/fish_user_key_bindings.fish @@ -14,7 +14,7 @@ bind -M insert \cp projects bind -M default \cp projects bind -M insert \x1F accept-autosuggestion bind -M default \x1F accept-autosuggestion -bind -M insert \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"' -bind -M default \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"' +bind -M insert \cn 'commandline -r "nix run nixpkgs#"' +bind -M default \cn 'commandline -r "nix run nixpkgs#"' bind -M insert \x11F nix-fzf bind -M default \x11F nix-fzf diff --git a/modules/shell/nixpkgs.nix b/modules/shell/nixpkgs.nix index e6a1840..0a8358c 100644 --- a/modules/shell/nixpkgs.nix +++ b/modules/shell/nixpkgs.nix @@ -19,9 +19,9 @@ body = '' set program $argv[1] if test (count $argv) -ge 2 - commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program -- $argv[2..-1]" + commandline -r "nix run nixpkgs#$program -- $argv[2..-1]" else - commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program" + commandline -r "nix run nixpkgs#$program" end commandline -f execute '';