aboutsummaryrefslogtreecommitdiff
path: root/modules/client/flatpak/default.nix
blob: 87dc6e29eef9fe9a79cf0605db4b7e7d0e173a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ pkgs, lib, ...}:
{
  services.flatpak = {
    enable = false;
    
    remotes = [
      {
        name = "flathub";
        location = "https://flathub.org/repo/flathub.flatpakrepo";
      }
    ];

    packages = [ ];

    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";
        };
      };
    };
  };
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.