diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index a7868ca..1e38087 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -13,6 +13,7 @@ ../../modules/home/cli/common ../../modules/home/cli/develop.nix ../../modules/home/cli/ssh.nix + ../../modules/home/cli/yazi.nix ]; @@ -43,7 +44,6 @@ unstable.vesktop unstable.blender loupe - unstable.bottles unstable.surrealist unstable.rnote @@ -69,6 +69,7 @@ enable = true; defaultApplications = { "application/pdf" = "firefox.desktop"; + "application/rnote" = "rnote.desktop"; }; }; diff --git a/modules/home/cli/yazi.nix b/modules/home/cli/yazi.nix new file mode 100644 index 0000000..7986e39 --- /dev/null +++ b/modules/home/cli/yazi.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: + +{ + programs.yazi = { + enable = true; + enableZshIntegration = true; + settings = { + opener = { + open = [ + { run = "xdg-open $@"; desc = "xdg"; orphan = true; } + ]; + }; + open = { + prepend_rules = [ + { name = "*.rnote"; use = "open"; } + ]; + }; + }; + }; +}