Add firefox-gnome-theme

This commit is contained in:
2023-06-10 14:46:35 +01:00
parent 56be50028d
commit d0643e53c3
3 changed files with 43 additions and 2 deletions

17
flake.lock generated
View File

@ -1,5 +1,21 @@
{
"nodes": {
"firefox-gnome-theme": {
"flake": false,
"locked": {
"lastModified": 1686332136,
"narHash": "sha256-Cqwqwu2KqHJOwh3sldU59+kz+gQM2f2Z9ZbX6TjzUOg=",
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"rev": "25a9ab399e0c3c21d28d25d428871d7ed8a3719a",
"type": "github"
},
"original": {
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -38,6 +54,7 @@
},
"root": {
"inputs": {
"firefox-gnome-theme": "firefox-gnome-theme",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}

View File

@ -7,6 +7,10 @@
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-gnome-theme = {
url = "github:rafaelmardojai/firefox-gnome-theme";
flake = false;
};
};
outputs = inputs @ { self, nixpkgs, home-manager, ... }:

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
with lib;
with lib.my;
@ -9,8 +9,28 @@ in {
};
config = mkIf cfg.enable {
home.file.".mozilla/firefox/Default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
home.programs.firefox = {
enable = true;
profiles.Default = {
search = {
default = "DuckDuckGo";
force = true;
};
userChrome = ''
@import "firefox-gnome-theme/userChrome.css";
'';
userContent = ''
@import "firefox-gnome-theme/userContent.css";
'';
settings = {
"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
};
};
};
};
}