Home Manager’s Thunderbird package (home-manager/modules/programs/thunderbird.nix at af59809e9413ec8adb9597a8636491af356fe525 · nix-community/home-manager · GitHub) contains the following function:
profilesIni =
lib.foldl lib.recursiveUpdate
{
General = {
StartWithLastProfile = 1;
}
// lib.optionalAttrs (cfg.profileVersion != null) {
Version = cfg.profileVersion;
};
}
(
lib.flip map profilesWithId (profile: {
"Profile${profile.id}" = {
Name = profile.name;
Path = if isDarwin then "Profiles/${profile.name}" else profile.name;
IsRelative = 1;
Default = if profile.isDefault then 1 else 0;
};
})
);
I’m interested in storing my profile in a different location (default ~/thunderbird). This means I need to change Path and IsRelative. I copied thunderbird.nix into my configuration directory and changed the values as needed, but I can’t figure out how to apply the patch. My flake.nix contains:
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
homeConfigurations = {
user = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
};
};
};
The only relevant line of home.nix is:
programs.thunderbird = {
enable = true;
};
I’ve read through the wiki page on overlays, but I’m at a loss for what exactly to override since I’m installing Thunderbird through Home Manager’s programs.thunderbird instead of the nixpkg.
Any guidance would be appreciated. I just started using Home Manager, and I’ve never tried to patch anything this way.