mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-05 03:56:19 +01:00
23 lines
892 B
Nix
23 lines
892 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
# XDG autostart entries. All of them are globally ordered after the
|
|
# xdg-desktop-portal stack via `systemd.user.units."app-@autostart.service"`
|
|
# in modules/nixos/desktop/xdg.nix, so sandboxed apps (nixpak: firefox,
|
|
# telegram, ...) don't race the portal at login and end up with broken
|
|
# FileChooser/OpenURI until manually restarted.
|
|
xdg.autostart.enable = true;
|
|
# This fixes nixpak sandboxed apps (like firefox) accessing mapped folders correctly
|
|
xdg.autostart.entries = [
|
|
"${pkgs.ghostty}/share/applications/com.mitchellh.ghostty.desktop"
|
|
"${pkgs.kitty}/share/applications/kitty.desktop"
|
|
|
|
# nixpaks
|
|
"${pkgs.nixpaks.firefox}/share/applications/org.mozilla.firefox.desktop"
|
|
"${pkgs.nixpaks.telegram-desktop}/share/applications/org.telegram.desktop.desktop"
|
|
"${pkgs.google-chrome}/share/applications/google-chrome.desktop"
|
|
];
|
|
}
|