1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-19 23:03:01 +00:00
home-manager/tests/modules/programs/firefox/profiles/shared-path.nix
Austin Horstman 95711f9266
treewide: remove with lib (#6512)
* nixos: remove with lib
* nix-darwin: remove with lib
* home-manager: remove with lib
* modules/accounts: remove with lib
* modules/config: remove with lib
* modules/i18n: remove with lib
* modules/misc: remove with lib
* modules: remove with lib
* modules/targets: remove with lib
* tests/modules/firefox: remove with lib
* tests/modules/services: remove with lib
2025-03-07 14:16:46 -06:00

51 lines
1.2 KiB
Nix

modulePath:
{ config, lib, ... }:
let firefoxMockOverlay = import ../setup-firefox-mock-overlay.nix modulePath;
in {
imports = [ firefoxMockOverlay ];
config = lib.mkIf config.test.enableBig (lib.setAttrByPath modulePath {
enable = true;
profiles = {
main = {
isDefault = true;
id = 1;
bookmarks = [{
toolbar = true;
bookmarks = [{
name = "Home Manager";
url = "https://wiki.nixos.org/wiki/Home_Manager";
}];
}];
containers = {
"shopping" = {
icon = "circle";
color = "yellow";
};
};
search = {
force = true;
default = "Google";
privateDefault = "DuckDuckGo";
engines = {
"Bing".metaData.hidden = true;
"Google".metaData.alias = "@g";
};
};
settings = {
"general.smoothScroll" = false;
"browser.newtabpage.pinned" = [{
title = "NixOS";
url = "https://nixos.org";
}];
};
};
"dev-edition-default" = {
id = 2;
path = "main";
};
};
});
}