aboutsummaryrefslogtreecommitdiff
path: root/modules/client/flatpak/default.nix
blob: ff25772ae2cda57097d7a08ab018754d1587a2f0 (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
49
50
51
{ pkgs, lib, ...}:
{
  # imports = [
  #   inputs.nix-flatpak.nixosModules.nix-flatpak
  # ];

  services.flatpak = {
    enable = true;
    
    remotes = [
      {
        name = "flathub";
        location = "https://flathub.org/repo/flathub.flatpakrepo";
      }
    ];

    packages = [
      "eu.betterbird.Betterbird"
      "io.github.equicord.equibop"
      "com.github.tchx84.Flatseal"
      "app.grayjay.Grayjay"
      "fi.skyjake.Lagrange"
      "org.localsend.localsend_app"
      "net.lutris.Lutris"
      "org.nicotine_plus.Nicotine"
      "org.musicbrainz.Picard"
      "net.mkiol.SpeechNote"
      "net.mkiol.SpeechNote.Addon.amd"
      "com.obsproject.Studio"
      "org.telegram.desktop"
      "com.rtosta.zapzap"
    ];

    update.auto = {
      enable = true;
      onCalendar = "weekly"; # Default value
    };
    
  	overrides = {
      global = {
        # Force Wayland by default
        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.