1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

tests/firefox: add shared path test

Used to make sure that profiles that share a common generated path still
build properly.
This commit is contained in:
Austin Horstman 2024-10-17 10:03:51 -05:00
parent 2ffb68e209
commit 346973b338
No known key found for this signature in database
2 changed files with 54 additions and 0 deletions

View file

@ -12,4 +12,5 @@ builtins.mapAttrs (test: module: import module [ "programs" name ]) {
"${name}-profiles-search" = ./profiles/search; "${name}-profiles-search" = ./profiles/search;
"${name}-profiles-settings" = ./profiles/settings; "${name}-profiles-settings" = ./profiles/settings;
"${name}-state-version-19_09" = ./state-version-19_09.nix; "${name}-state-version-19_09" = ./state-version-19_09.nix;
"${name}-profiles-shared-path" = ./profiles/shared-path.nix;
} }

View file

@ -0,0 +1,53 @@
modulePath:
{ config, lib, ... }:
with lib;
let firefoxMockOverlay = import ../setup-firefox-mock-overlay.nix modulePath;
in {
imports = [ firefoxMockOverlay ];
config = mkIf config.test.enableBig (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";
};
};
});
}