From 5d309c2d4e68963fd54337f932dec03d07baddbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Fri, 2 Jan 2026 18:35:41 +0100 Subject: [PATCH] home/fish: add nix-wrapper to use nom if available --- nix/homeModules/common/fish/functions/nix-build.fish | 7 +++++++ nix/homeModules/common/fish/functions/nix-shell.fish | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 nix/homeModules/common/fish/functions/nix-build.fish create mode 100644 nix/homeModules/common/fish/functions/nix-shell.fish diff --git a/nix/homeModules/common/fish/functions/nix-build.fish b/nix/homeModules/common/fish/functions/nix-build.fish new file mode 100644 index 00000000..4f541a72 --- /dev/null +++ b/nix/homeModules/common/fish/functions/nix-build.fish @@ -0,0 +1,7 @@ +function nix-build + if type -q nix-build + nom-build $argv + else + nix-build $argv + end +end diff --git a/nix/homeModules/common/fish/functions/nix-shell.fish b/nix/homeModules/common/fish/functions/nix-shell.fish new file mode 100644 index 00000000..a615057f --- /dev/null +++ b/nix/homeModules/common/fish/functions/nix-shell.fish @@ -0,0 +1,7 @@ +function nix-shell + if type -q nix-shell + nom-shell $argv + else + nix-shell $argv + end +end