feat (home/graphical): custom .desktop files, filter default apps

This commit is contained in:
Henri Saudubray 2026-04-13 13:56:23 +02:00
parent cb57c3fd7c
commit d5b2a8832b
Signed by: hms
GPG key ID: 7065F57ED8856128
6 changed files with 280 additions and 47 deletions

View file

@ -1,5 +1,10 @@
{ pkgs, ... }:
{
imports = [
./packages/librewolf
./packages/thunderbird
];
home = {
packages =
with pkgs;
@ -7,7 +12,6 @@
adw-gtk3
blackbox-terminal
discord
gapless
gnome-solanum
gnome-tweaks
high-tide
@ -34,55 +38,26 @@
useless-gaps
window-centering
]);
file."librewolf-gnome-theme" = {
target = ".librewolf/default/chrome/librewolf-gnome-theme";
source = fetchTarball {
url = "https://github.com/rafaelmardojai/firefox-gnome-theme/archive/v143.tar.gz";
sha256 = "1gkfi77n8cn5xzl3wi9mggh7adirjrsnbqygg1mcvjy0ynmd6kfh";
};
};
file."thunderbird-gnome-theme" = {
target = ".thunderbird/default/chrome/thunderbird-gnome-theme";
source = fetchTarball {
url = "https://github.com/rafaelmardojai/thunderbird-gnome-theme/archive/v115.tar.gz";
sha256 = "1l295w61h5469328qkjggny3mjq1x0q3zr9p8pz5sq5pypc7604x";
};
};
};
programs.firefox.enable = true;
programs.librewolf = {
enable = true;
profiles.default = {
name = "Default";
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"svg.context-properties.content.enabled" = true;
"gnomeTheme.hideSingleTab" = true;
};
userChrome = ''
@import "librewolf-gnome-theme/userChrome.css";
@import "librewolf-gnome-theme/theme/colors/dark.css";
'';
};
};
programs.thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"svg.context-properties.content.enabled" = true;
"gnomeTheme.hideTabbar" = true;
};
userChrome = ''
@import "thunderbird-gnome-theme/userChrome.css";
@import "thunderbird-gnome-theme/theme/colors/dark.css";
'';
xdg.desktopEntries = {
"com.raggesilver.BlackBox" = {
categories = [
"GNOME"
"GTK"
"System"
"TerminalEmulator"
];
comment = "Access the terminal";
exec = "blackbox";
genericName = "Terminal Emulator";
icon = "com.raggesilver.BlackBox";
name = "Terminal";
startupNotify = false;
terminal = false;
type = "Application";
};
};