Home: Configure xdg-desktop-portal-termfilechooser
This commit is contained in:
@ -246,12 +246,8 @@ rec {
|
|||||||
defaultApplications = nixosConfig.xdg.mime.defaultApplications;
|
defaultApplications = nixosConfig.xdg.mime.defaultApplications;
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: What about desktop portals? They're configured in system config, do I need to do sth here?
|
|
||||||
portal = {
|
portal = {
|
||||||
enable = nixosConfig.xdg.portal.enable;
|
inherit (nixosConfig.xdg.portal) enable xdgOpenUsePortal config extraPortals;
|
||||||
xdgOpenUsePortal = nixosConfig.xdg.portal.xdgOpenUsePortal;
|
|
||||||
config.common.default = nixosConfig.xdg.portal.config.common.default;
|
|
||||||
extraPortals = nixosConfig.xdg.portal.extraPortals;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -300,6 +296,15 @@ rec {
|
|||||||
|
|
||||||
".ssh/id_ed25519.pub".text = "${sshPublicKey}";
|
".ssh/id_ed25519.pub".text = "${sshPublicKey}";
|
||||||
".ssh/allowed_signers".text = "* ${sshPublicKey}";
|
".ssh/allowed_signers".text = "* ${sshPublicKey}";
|
||||||
|
|
||||||
|
".config/xdg-desktop-portal-termfilechooser/config".text = ''
|
||||||
|
[filechooser]
|
||||||
|
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
||||||
|
default_dir=$HOME
|
||||||
|
env=TERMCMD=kitty --class=file_chooser
|
||||||
|
open_mode = suggested
|
||||||
|
save_mode = last
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Here, custom scripts can be run when activating a HM generation.
|
# Here, custom scripts can be run when activating a HM generation.
|
||||||
|
Reference in New Issue
Block a user