aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/firefox/profile-settings.nix
blob: 45465b1d0bf712bc6db428d856269748e2fa6d3c (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
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.firefox = {
      enable = true;
      profiles.test.settings = {
        "general.smoothScroll" = false;
      };
    };

    nmt.script = ''
      assertFileRegex \
        home-path/bin/firefox \
        MOZ_APP_LAUNCHER

      assertFileContent \
        home-files/.mozilla/firefox/test/user.js \
        ${./profile-settings-expected-user.js}
    '';
  };
}