mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 08:31:03 +01:00
29 lines
819 B
Nix
29 lines
819 B
Nix
# Confirm that both Firefox and Thunderbird can be configured at the same time.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
|
|
nativeHostsDir =
|
|
if isDarwin then "Library/Mozilla/NativeMessagingHosts" else ".mozilla/native-messaging-hosts";
|
|
in
|
|
lib.recursiveUpdate (import ./thunderbird.nix { inherit config lib pkgs; }) {
|
|
programs.thunderbird = {
|
|
nativeMessagingHosts = [
|
|
(config.lib.test.mkStubPackage {
|
|
name = "browserpass";
|
|
buildScript = ''
|
|
mkdir -p $out/lib/mozilla/native-messaging-hosts
|
|
echo test > $out/lib/mozilla/native-messaging-hosts/com.github.browserpass.native.json
|
|
'';
|
|
})
|
|
];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/${nativeHostsDir}/com.github.browserpass.native.json
|
|
'';
|
|
}
|