aboutsummaryrefslogtreecommitdiff
path: root/modules/flatpak/default.nix
blob: e5a636f23eb7d82442c885556ca90c8cb6227157 (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
40
41
42
43
44
45
46
47
48
{ pkgs, lib, ...}:
{
  services.flatpak = {
    enable = true;
    
    remotes = [
      {
        name = "flathub";
        location = "https://flathub.org/repo/flathub.flatpakrepo";
      }
    ];

    packages = [
      "app.grayjay.Grayjay"
      "com.github.tchx84.Flatseal"
      "com.obsproject.Studio"
      "fi.skyjake.Lagrange"
      "media.emby.EmbyTheater"
      "net.lutris.Lutris"
      "org.gimp.GIMP"
      "org.inkscape.Inkscape"
      "org.localsend.localsend_app"
      "org.musicbrainz.Picard"
      "org.nickvision.money"
      "org.nicotine_plus.Nicotine"
    ];

    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.