aboutsummaryrefslogtreecommitdiff
path: root/modules/client/flatpak/default.nix
blob: dd3c84fdc5793aecd786e7c3e32fb82a1d845a5f (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
36
37
38
39
{ pkgs, lib, ...}:
{
  services.flatpak = {
    enable = true;
    
    remotes = [
      {
        name = "flathub";
        location = "https://flathub.org/repo/flathub.flatpakrepo";
      }
    ];

    packages = [
      "app.grayjay.Grayjay"
      "net.lutris.Lutris"
      "org.nickvision.money"
    ];

    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.