From fa16bf82075a2cc58e605017d0217ec5eff5ff77 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 29 Aug 2024 15:35:30 -0700 Subject: hi --- home/ebisu/meta/system/shell/fish/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'home/ebisu/meta/system/shell') diff --git a/home/ebisu/meta/system/shell/fish/default.nix b/home/ebisu/meta/system/shell/fish/default.nix index 2d8590e..94270e7 100644 --- a/home/ebisu/meta/system/shell/fish/default.nix +++ b/home/ebisu/meta/system/shell/fish/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { programs.fish = { enable = true; @@ -18,6 +18,14 @@ function vpn env BIND_INTERFACE=wgpia0 LD_PRELOAD=/usr/lib/bindToInterface.so $argv end + + function nh + if test "$argv[1]" = "home" -a "$argv[2]" = "switch" + command nh $argv -- --impure + else + command nh $argv + end + end end set -l config_home (set -q XDG_CONFIG_HOME; and echo $XDG_CONFIG_HOME; or echo $HOME/.config) @@ -103,6 +111,7 @@ wdic = "wdic --homophones --kanji --color --pager"; hakuneko = "hakuneko-desktop --no-sandbox"; fastfetch = "clear && /usr/bin/env fastfetch"; + wget = "wget --hsts-file=${config.xdg.dataHome}/wget-hsts"; # Modern Alternatives & Alias Rewrites sxiv = "nsxiv"; -- cgit v1.2.3