]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/thunderbird.nix
Usability/Operability(firefox): give access to ~/docs
[julm/julm-nix.git] / home-manager / profiles / thunderbird.nix
1 {
2 pkgs,
3 lib,
4 config,
5 ...
6 }:
7 let
8 cfg = config.programs.thunderbird;
9 in
10 {
11 options = {
12 programs.thunderbird = {
13 firejail.args = lib.mkOption {
14 description = "Arguments to pass to the firejail sandboxing thunderbird";
15 type = with lib.types; listOf str;
16 default = [
17 "--profile=${pkgs.firejail}/etc/firejail/thunderbird.profile"
18 ];
19 };
20 };
21 };
22 config = {
23 home.packages = [
24 (pkgs.firejailWrap {
25 package = pkgs.thunderbird;
26 inherit (cfg.firejail) args;
27 })
28 ];
29 };
30 }