Add thunderbird module
This commit is contained in:
parent
2b31f03f53
commit
82bdf02971
19
flake.lock
generated
19
flake.lock
generated
@ -56,7 +56,24 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"thunderbird-gnome-theme": "thunderbird-gnome-theme"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"thunderbird-gnome-theme": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1693936054,
|
||||||
|
"narHash": "sha256-KwjdXFyrorAXiOQnAsqKOatpRaKTuVTnLfs4xOLe3PY=",
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "thunderbird-gnome-theme",
|
||||||
|
"rev": "3df2e63b4818cf78b4bd8408763638b907df372b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "thunderbird-gnome-theme",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
url = "github:rafaelmardojai/firefox-gnome-theme";
|
url = "github:rafaelmardojai/firefox-gnome-theme";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
thunderbird-gnome-theme = {
|
||||||
|
url = "github:rafaelmardojai/thunderbird-gnome-theme";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
./desktop/mimeapps.nix
|
./desktop/mimeapps.nix
|
||||||
./desktop/apps/qbittorrent.nix
|
./desktop/apps/qbittorrent.nix
|
||||||
./desktop/apps/slack.nix
|
./desktop/apps/slack.nix
|
||||||
|
./desktop/apps/thunderbird.nix
|
||||||
./desktop/apps/zoom.nix
|
./desktop/apps/zoom.nix
|
||||||
./desktop/browsers/firefox.nix
|
./desktop/browsers/firefox.nix
|
||||||
./desktop/gaming/emulators.nix
|
./desktop/gaming/emulators.nix
|
||||||
|
32
modules/desktop/apps/thunderbird.nix
Normal file
32
modules/desktop/apps/thunderbird.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.my;
|
||||||
|
let cfg = config.modules.desktop.apps.thunderbird;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.apps.thunderbird = {
|
||||||
|
enable = mkBoolOpt false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.file.".mozilla/thunderbird/Default/chrome/thunderbird-gnome-theme".source = 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user