aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/tests/installed-tests/flatpak.nix
blob: 091c993266296eef0255c7213739e1686358b6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, makeInstalledTest, ... }:

makeInstalledTest {
  tested = pkgs.flatpak;
  withX11 = true;

  testConfig = {
    services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
    # common/x11.nix enables the auto display manager (lightdm)
    services.xserver.displayManager.gdm.enable = false;
    services.gnome3.core-utilities.enable = false;
    services.flatpak.enable = true;
    environment.systemPackages = with pkgs; [ gnupg ostree python2 ];
    virtualisation.memorySize = 2047;
    virtualisation.diskSize = 1024;
  };

  testRunnerFlags = "--timeout 3600";
}