[thunderbird] WIP: Declarative extensions
This commit is contained in:
parent
48463104ab
commit
99ae637b8c
1 changed files with 104 additions and 76 deletions
|
|
@ -3,6 +3,9 @@
|
|||
let
|
||||
cfg = config.sisyphus.users.tdpeuter;
|
||||
user = config.users.users.tdpeuter.name;
|
||||
|
||||
profile = "tdpeuter";
|
||||
|
||||
signatures = {
|
||||
default = ''
|
||||
Met vriendelijke groeten
|
||||
|
|
@ -25,8 +28,20 @@ let
|
|||
};
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||
accounts.email.accounts = {
|
||||
home-manager.users."${user}" = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||
accounts = {
|
||||
calendar.accounts = {
|
||||
Nextcloud = {
|
||||
primary = true;
|
||||
remote = {
|
||||
type = "caldav";
|
||||
url = "https://cloud.depeuter.dev/remote.php/dav";
|
||||
userName = "tdpeuter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
email.accounts = {
|
||||
Telenet = {
|
||||
address = "tibo.depeuter@telenet.be";
|
||||
userName = "tibo.depeuter@telenet.be";
|
||||
|
|
@ -118,11 +133,12 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
profiles.tdpeuter = {
|
||||
profiles."${profile}" = {
|
||||
isDefault = true;
|
||||
settings = {
|
||||
# View
|
||||
|
|
@ -139,5 +155,17 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
policies.ExtensionSettings = {
|
||||
"cardbook" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url = "https://addons.thunderbird.net/thunderbird/downloads/latest/cardbook/addon-634298-latest.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue