1
0
forked from extern/nix-config

fish: Use XDG_DATA_DIRS for tauri applications

This fixes an issue where tauri applications would have small text when
ran outside of a nix shell after being built.
This commit is contained in:
Donovan Glover 2023-10-25 13:26:45 -04:00
parent bab881b769
commit 51530c8403
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,3 +1,5 @@
{ pkgs, ... }:
{ {
xdg.configFile."fish/config.fish".text = /* fish */ '' xdg.configFile."fish/config.fish".text = /* fish */ ''
set -U fish_greeting "" set -U fish_greeting ""
@ -6,6 +8,7 @@
export GOPATH="$HOME/.go" export GOPATH="$HOME/.go"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export TERMCMD="kitty --single-instance" export TERMCMD="kitty --single-instance"
export XDG_DATA_DIRS="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS"
# Required to make gpg-agent work in cases like git commit # Required to make gpg-agent work in cases like git commit
export GPG_TTY=(tty) export GPG_TTY=(tty)