nix: flatpak fonts & icons

This commit is contained in:
js0ny 2025-10-15 03:04:44 +01:00
parent 0c6d0edb42
commit af7c7b49f2
4 changed files with 57 additions and 40 deletions

View file

@ -1,5 +1,6 @@
# https://github.com/gmodena/nix-flatpak
{...}: {
{nix-flatpak, ...}: {
services.flatpak.enable = true;
services.flatpak.remotes = [
{
name = "flathub";
@ -24,8 +25,22 @@
"com.getpostman.Postman"
];
services.flatpak.overrides = {
global = {
Context = {
# Force wayland by default
sockets = ["wayland" "!x11" "!fallback-x11"];
filesystems = [
"/run/current-system/sw/share/fonts:ro"
"xdg-config/fontconfig:ro"
# "xdg-data/fonts:ro"
];
};
};
"com.qq.QQ".Context.sockets = ["x11"];
"com.tencent.WeChat" = {
Context.sockets = ["x11"];
Environment = {
# WeChat does not support wayland & wayland-ime
QT_IM_MODULE = "fcitx";
};
};