Testing Firefox
This commit is contained in:
parent
8fddac2366
commit
cd73e66e2a
2 changed files with 22 additions and 3 deletions
|
@ -24,6 +24,9 @@
|
||||||
# disko - Declarative Disk Partitioning
|
# disko - Declarative Disk Partitioning
|
||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# Firefox theme, for "Gradience" GTK Theming
|
||||||
|
firefox-gnome-theme.url = "github:rafaelmardojai/firefox-gnome-theme";
|
||||||
|
firefox-gnome-theme.flake = false;
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, ... } @inputs:
|
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, ... } @inputs:
|
||||||
let
|
let
|
||||||
|
|
|
@ -1,12 +1,30 @@
|
||||||
{ config, pkgs, theme, ... }: {
|
{ config, pkgs, theme, ... }: {
|
||||||
|
|
||||||
imports = [ ./themes/${theme}/firefox-theme.nix ];
|
imports = [ ./themes/${theme}/firefox-theme.nix ];
|
||||||
|
|
||||||
|
home.file.".mozilla/firefox/nix-user-profile/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
name = "default";
|
name = "default";
|
||||||
|
userChrome = ''
|
||||||
|
@import "firefox-gnome-theme/userChrome.css";
|
||||||
|
'';
|
||||||
|
userContent = ''
|
||||||
|
@import "firefox-gnome-theme/userContent.css";
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://discourse.nixos.org/t/anyone-using-firefox-gnome-theme-successfully-with-nixos-home-manager/19248/3
|
||||||
|
settings = {
|
||||||
|
## Firefox gnome theme ## - https://github.com/rafaelmardojai/firefox-gnome-theme/blob/7cba78f5216403c4d2babb278ff9cc58bcb3ea66/configuration/user.js
|
||||||
|
# (copied into here because home-manager already writes to user.js)
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Enable customChrome.cs
|
||||||
|
"browser.uidensity" = 0; # Set UI density to normal
|
||||||
|
"svg.context-properties.content.enabled" = true; # Enable SVG context-propertes
|
||||||
|
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
|
||||||
|
};
|
||||||
|
|
||||||
# https://nur.nix-community.org/repos/rycee/
|
# https://nur.nix-community.org/repos/rycee/
|
||||||
extensions = with pkgs.nur.repos; [
|
extensions = with pkgs.nur.repos; [
|
||||||
|
@ -18,8 +36,6 @@
|
||||||
rycee.firefox-addons.link-cleaner
|
rycee.firefox-addons.link-cleaner
|
||||||
rycee.firefox-addons.adnauseam
|
rycee.firefox-addons.adnauseam
|
||||||
rycee.firefox-addons.censor-tracker
|
rycee.firefox-addons.censor-tracker
|
||||||
|
|
||||||
federicoschonborn.firefox-gnome-theme
|
|
||||||
];
|
];
|
||||||
|
|
||||||
search.default = "DuckDuckGo";
|
search.default = "DuckDuckGo";
|
||||||
|
|
Loading…
Reference in a new issue