Digging back into the problem with fresh eyes, it does seem like I haven’t done my due diligence properly. With some more testing, I’ve gotten the error down to a proper minimal working example. It seems like the issue isn’t between the bookmark files at all, but rather between the bookmark file and profile settings.
code and error
# home.nix
{ config, pkgs, ... }:
{
home-manager = {
useGlobalPkgs = true;
users.fluff = { pkgs, ... }: {
programs.librewolf = {
enable = true;
profiles.default = {
settings = {
"privacy.fingerprintingProtection"=true;
"privacy.resistFingerprinting"=false;
};
};
};
imports = [
(./. + "/admin_bookmarks.nix")
];
home.stateVersion = "25.11";
};
};
}
# admin_bookmarks.nix
{ config, pkgs, ... }:
{
programs.librewolf.profiles.defualt.bookmarks = {
force = true;
settings = [
{ name = "NixOS";
bookmarks = [
{ name = "packages";
url = "https://search.nixos.org/packages";
}
];
}
];
};
}
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/h38417wn715s107d3ihxkskzsj7pa666-source/lib/attrsets.nix:1696:13:
1695| if length values == 1 || pred here (elemAt values 1) (head values) then
1696| head values
| ^
1697| else
… while evaluating the attribute 'value'
at /nix/store/h38417wn715s107d3ihxkskzsj7pa666-source/lib/modules.nix:1118:7:
1117| // {
1118| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1119| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/h38417wn715s107d3ihxkskzsj7pa666-source/nixos/modules/system/activation/top-level.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error:
Failed assertions:
- fluff profile: Must have exactly one default LibreWolf profile but found 2, namely default, defualt
- fluff profile: Must not have a LibreWolf profile with an existing ID but
- ID 0 is used by default, defualt
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --dry-run' returned non-zero exit status 1.