1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 11:49: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 Mikilio
parent 132e212203
commit 0e16a9b843
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F
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; };
};
};
};
}