From 221406d9a6e68f251c6ecb4f76ce5d72a198f9d4 Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Wed, 30 Apr 2025 17:19:59 +0200 Subject: [PATCH] fish: add common commands as functions --- modules/home/apps/cli-apps/fish/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/home/apps/cli-apps/fish/default.nix b/modules/home/apps/cli-apps/fish/default.nix index 3be822f..3a4b225 100644 --- a/modules/home/apps/cli-apps/fish/default.nix +++ b/modules/home/apps/cli-apps/fish/default.nix @@ -42,6 +42,11 @@ in ls = "eza -lah --icons --git"; lss = "ls --total-size"; }; + functions = { + checkHash = "nix hash to-sri --type sha256 $(nix-prefetch-url --unpack $argv)"; + deployNixberry = "nixos-rebuild switch --flake .#nixberry --target-host nixberry --use-remote-sudo --fast"; + deployLoptland = "nixos-rebuild switch --flake .#loptland --target-host christophhollizeck.dev --use-remote-sudo --fast"; + }; plugins = with pkgs.fishPlugins; [ { name = "forgit";