diff options
Diffstat (limited to 'modules/flatpak-base/default.nix')
| -rw-r--r-- | modules/flatpak-base/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/flatpak-base/default.nix b/modules/flatpak-base/default.nix new file mode 100644 index 0000000..3f6a56d --- /dev/null +++ b/modules/flatpak-base/default.nix @@ -0,0 +1,37 @@ +{ pkgs, lib, ...}: +{ + services.flatpak = { + enable = true; + + remotes = [ + { + name = "flathub"; + location = "https://flathub.org/repo/flathub.flatpakrepo"; + } + ]; + + packages = [ + "com.github.tchx84.Flatseal" + ]; + + update = { + auto = { + enable = true; + onCalendar = "weekly"; # Default value + }; + onActivation = true; + }; + + overrides = { + global = { + # Enable for both wayland and x11 + Context.sockets = [ "wayland" "x11" "!fallback-x11" ]; + + Environment = { + # Fix un-themed cursor in some Wayland apps + XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons"; + }; + }; + }; + }; +} |
