update firefox config to automatically apply gnome theme
This commit is contained in:
parent
7403f5b846
commit
867d0740e2
@ -26,8 +26,6 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
micro
|
micro
|
||||||
firefox
|
|
||||||
chromium
|
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-tweaks
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/dev.nix
|
../../modules/dev.nix
|
||||||
|
../../modules/firefox.nix
|
||||||
../../modules/fonts.nix
|
../../modules/fonts.nix
|
||||||
../../modules/git.nix
|
../../modules/git.nix
|
||||||
../../modules/git_nixos.nix
|
../../modules/git_nixos.nix
|
||||||
@ -10,11 +10,6 @@
|
|||||||
../../modules/vscode.nix
|
../../modules/vscode.nix
|
||||||
../../modules/zsh.nix
|
../../modules/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
# foxitreader
|
|
||||||
];
|
|
||||||
|
|
||||||
home.stateVersion = "21.05";
|
home.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
30
user/modules/firefox.nix
Normal file
30
user/modules/firefox.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
# Add Firefox GNOME theme directory
|
||||||
|
home.file."firefox-gnome-theme" = {
|
||||||
|
target = ".mozilla/firefox/default/chrome/firefox-gnome-theme";
|
||||||
|
source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "rafaelmardojai";
|
||||||
|
repo = "firefox-gnome-theme";
|
||||||
|
rev = "v110";
|
||||||
|
hash = "sha256-2KKntUo0uYCXZrnaB5Q7bf97+tUL3UiuyDtTlyjbXFo=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default = {
|
||||||
|
name = "Default";
|
||||||
|
settings = {
|
||||||
|
# For Firefox GNOME theme:
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
"browser.tabs.drawInTitlebar" = true;
|
||||||
|
"svg.context-properties.content.enabled" = true;
|
||||||
|
};
|
||||||
|
userChrome = ''
|
||||||
|
@import "firefox-gnome-theme/userChrome.css";
|
||||||
|
@import "firefox-gnome-theme/theme/colors/dark.css";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user