1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

firefox: add test for duplicate profile id assertion

This commit is contained in:
Damien Cassou 2023-10-13 08:34:11 +02:00 committed by Robert Helgesson
parent f033205b25
commit 78125bc681
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 24 additions and 0 deletions

View file

@ -2,4 +2,5 @@
firefox-profile-settings = ./profile-settings.nix;
firefox-state-version-19_09 = ./state-version-19_09.nix;
firefox-deprecated-native-messenger = ./deprecated-native-messenger.nix;
firefox-duplicate-profile-ids = ./duplicate-profile-ids.nix;
}

View file

@ -0,0 +1,23 @@
{ config, lib, ... }:
{
imports = [ ./setup-firefox-mock-overlay.nix ];
config = lib.mkIf config.test.enableBig {
test.asserts.assertions.expected = [''
Must not have Firefox profiles with duplicate IDs but
- ID 1 is used by first, second''];
programs.firefox = {
enable = true;
profiles = {
first = {
isDefault = true;
id = 1;
};
second = { id = 1; };
};
};
};
}