thunderbird: move from module to user config

This commit is contained in:
Jordan Holt 2025-03-16 14:39:55 +00:00
parent 2da1857e27
commit 4ef00d2af9
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
5 changed files with 28 additions and 43 deletions

View File

@ -29,7 +29,6 @@
}; };
libreoffice.enable = true; libreoffice.enable = true;
qbittorrent.enable = true; qbittorrent.enable = true;
thunderbird.enable = true;
}; };
services = { services = {
borgmatic = { borgmatic = {

View File

@ -11,7 +11,6 @@
./programs/recording.nix ./programs/recording.nix
./programs/slack.nix ./programs/slack.nix
./programs/steam.nix ./programs/steam.nix
./programs/thunderbird.nix
./programs/vscode.nix ./programs/vscode.nix
./programs/zoom.nix ./programs/zoom.nix
]; ];

View File

@ -1,41 +0,0 @@
{
config,
lib,
self,
...
}:
let
cfg = config.modules.programs.thunderbird;
in
{
options.modules.programs.thunderbird = {
enable = lib.mkOption {
default = false;
example = true;
};
};
config = lib.mkIf cfg.enable {
home.file.".thunderbird/Default/chrome/thunderbird-gnome-theme".source =
self.inputs.thunderbird-gnome-theme;
home.programs.thunderbird = {
enable = true;
profiles.Default = {
isDefault = true;
userChrome = ''
@import "thunderbird-gnome-theme/userChrome.css";
'';
userContent = ''
@import "thunderbird-gnome-theme/userContent.css";
'';
settings = {
## GNOME theme
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"svg.context-properties.content.enabled" = true;
};
};
};
};
}

View File

@ -5,5 +5,6 @@
{ {
imports = [ imports = [
./firefox.nix ./firefox.nix
./thunderbird.nix
]; ];
} }

View File

@ -0,0 +1,27 @@
{
self,
...
}:
{
home.file.".thunderbird/Default/chrome/thunderbird-gnome-theme".source =
self.inputs.thunderbird-gnome-theme;
home.programs.thunderbird = {
enable = true;
profiles.Default = {
isDefault = true;
userChrome = ''
@import "thunderbird-gnome-theme/userChrome.css";
'';
userContent = ''
@import "thunderbird-gnome-theme/userContent.css";
'';
settings = {
## GNOME theme
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"svg.context-properties.content.enabled" = true;
};
};
};
}