diff --git a/modules/applications/nautilus.nix b/modules/applications/nautilus.nix index 28cfb3a..7406a4c 100644 --- a/modules/applications/nautilus.nix +++ b/modules/applications/nautilus.nix @@ -7,6 +7,13 @@ gnome.nautilus gnome.sushi # Quick preview with spacebar ]; + + programs.fish.functions = { + qr = { + body = + "${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png"; + }; + }; }; }; diff --git a/modules/shell/utilities.nix b/modules/shell/utilities.nix index c32d6d2..30d6741 100644 --- a/modules/shell/utilities.nix +++ b/modules/shell/utilities.nix @@ -59,11 +59,6 @@ in { argumentNames = "target"; body = "${pkgs.prettyping}/bin/prettyping --nolegend $target"; }; - qr = { - # Fix for non-macOS - body = - "${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png"; - }; }; };