feat(desktop/firefox): add synced profile support and move desktop config

This commit is contained in:
Mohammad Rafiq 2025-06-13 21:09:43 +08:00
parent 7e256c954d
commit 02c356494a
No known key found for this signature in database
6 changed files with 82 additions and 47 deletions

View file

@ -0,0 +1,25 @@
{ lib, config, ... }:
let
inherit (lib) mkEnableOption mkOption;
inherit (lib.types) listOf str;
inherit (lib.lists) allUnique;
cfg = config.desktop.browser;
in
{
options.desktop.browser = {
firefox = {
enable = mkEnableOption "";
syncedProfiles = mkOption {
type = listOf str;
default = [ ];
};
};
};
config.assertions = [
{
assertion = allUnique cfg.firefox.syncedProfiles;
message = "desktop.browser.firefox.syncedProfiles has duplicate elements.";
}
];
}