enable firefox-gnome-theme
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
{ pkgs }:
|
{ inputs, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# vital-synth = pkgs.callPackage ./vital-synth {}; # Kept as an example, don't know if I will fix this or keep using distrho
|
# vital-synth = pkgs.callPackage ./vital-synth {}; # Kept as an example, don't know if I will fix this or keep using distrho
|
||||||
cyberdrop-dl = pkgs.callPackage ./cyberdrop-dl {};
|
cyberdrop-dl = pkgs.callPackage ./cyberdrop-dl {};
|
||||||
|
firefox-gnome-theme = pkgs.callPackage ./firefox-gnome-theme { src = inputs.firefox-gnome-theme; };
|
||||||
}
|
}
|
17
flake.lock
generated
17
flake.lock
generated
@ -38,6 +38,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"firefox-gnome-theme": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659056973,
|
||||||
|
"narHash": "sha256-Vxxxwi2XV3oys2xbjkt2RSHu0mPeEKX0x4ksI1ANVec=",
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"rev": "73c929f3b1583ef0053bda6a0353b17ade3b0c39",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1642700792,
|
"lastModified": 1642700792,
|
||||||
@ -201,6 +217,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"hardware": "hardware",
|
"hardware": "hardware",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"musnix": "musnix",
|
"musnix": "musnix",
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
musnix.url = "github:musnix/musnix";
|
musnix.url = "github:musnix/musnix";
|
||||||
devshell.url = "github:numtide/devshell";
|
devshell.url = "github:numtide/devshell";
|
||||||
# nixvim.url = "github:pta2002/nixvim";
|
# nixvim.url = "github:pta2002/nixvim";
|
||||||
|
|
||||||
|
firefox-gnome-theme.url = "github:rafaelmardojai/firefox-gnome-theme";
|
||||||
|
firefox-gnome-theme.flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Outputs is a function that takes the inputs as arguments.
|
# Outputs is a function that takes the inputs as arguments.
|
||||||
@ -43,7 +46,7 @@
|
|||||||
inputs.emacs-overlay.overlay
|
inputs.emacs-overlay.overlay
|
||||||
|
|
||||||
# All my own overlays
|
# All my own overlays
|
||||||
(import ./overlays { inherit nixpkgs; })
|
(import ./overlays { inherit nixpkgs inputs; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ in rec {
|
|||||||
vaapi = true;
|
vaapi = true;
|
||||||
disableTabBar = true;
|
disableTabBar = true;
|
||||||
defaultBookmarks = true;
|
defaultBookmarks = true;
|
||||||
|
gnomeTheme = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
@ -136,6 +137,7 @@ in rec {
|
|||||||
# Enable wayland
|
# Enable wayland
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
# Don't use system wine, use bottles
|
# Don't use system wine, use bottles
|
||||||
# WINEESYNC = 1;
|
# WINEESYNC = 1;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, nixosConfig, lib, pkgs, mylib, ... }:
|
{ inputs, config, nixosConfig, lib, pkgs, mylib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, nixosConfig, lib, mylib, pkgs, ... }:
|
{ inputs, config, nixosConfig, lib, mylib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules;
|
with mylib.modules;
|
||||||
@ -13,6 +13,7 @@ in {
|
|||||||
vaapi = mkBoolOpt false "Enable firefox vaapi support";
|
vaapi = mkBoolOpt false "Enable firefox vaapi support";
|
||||||
disableTabBar = mkBoolOpt false "Disable the firefox tab bar (for TST)";
|
disableTabBar = mkBoolOpt false "Disable the firefox tab bar (for TST)";
|
||||||
defaultBookmarks = mkBoolOpt false "Preset standard bookmarks and folders";
|
defaultBookmarks = mkBoolOpt false "Preset standard bookmarks and folders";
|
||||||
|
gnomeTheme = mkBoolOpt false "Use Firefox gnome theme (rafaelmardojai)";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
@ -24,6 +25,8 @@ in {
|
|||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
])
|
])
|
||||||
|
|
||||||
|
(optionals cfg.gnomeTheme [ firefox-gnome-theme ])
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = mkMerge [
|
home.sessionVariables = mkMerge [
|
||||||
@ -116,14 +119,17 @@ in {
|
|||||||
id = 0; # 0 is default profile
|
id = 0; # 0 is default profile
|
||||||
|
|
||||||
userChrome = concatStringsSep "\n" [
|
userChrome = concatStringsSep "\n" [
|
||||||
|
(optionalString cfg.gnomeTheme ''
|
||||||
|
@import "${pkgs.firefox-gnome-theme}/share/firefox-gnome-theme/gnome-theme.css";
|
||||||
|
'')
|
||||||
|
|
||||||
(optionalString cfg.disableTabBar ''
|
(optionalString cfg.disableTabBar ''
|
||||||
#TabsToolbar {
|
#TabsToolbar { display: none; }
|
||||||
display: none;
|
'')
|
||||||
}
|
|
||||||
'')
|
|
||||||
];
|
];
|
||||||
|
|
||||||
settings = mkMerge [
|
settings = mkMerge [
|
||||||
|
# TODO: Fix vaapi
|
||||||
(optionalAttrs cfg.vaapi {
|
(optionalAttrs cfg.vaapi {
|
||||||
# Firefox wayland hardware video acceleration
|
# Firefox wayland hardware video acceleration
|
||||||
# https://github.com/elFarto/nvidia-vaapi-driver/#firefox=
|
# https://github.com/elFarto/nvidia-vaapi-driver/#firefox=
|
||||||
@ -134,12 +140,17 @@ in {
|
|||||||
"media.rdd-ffmpeg.enabled" = true;
|
"media.rdd-ffmpeg.enabled" = true;
|
||||||
"media.av1.enabled" = false;
|
"media.av1.enabled" = false;
|
||||||
"gfx.x11-egl.force-enabled" = true;
|
"gfx.x11-egl.force-enabled" = true;
|
||||||
|
"media.hardware-video-decoding.force-enabled" = true;
|
||||||
|
"layers.acceleration.force-enabled" = true;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# TODO: Check about:config and add missing stuff
|
||||||
{
|
{
|
||||||
"app.update.auto" = false;
|
"app.update.auto" = false;
|
||||||
# "browser.startup.homepage" = "https://lobste.rs";
|
# "browser.startup.homepage" = "https://lobste.rs";
|
||||||
"identity.fxaccounts.account.device.name" = nixosConfig.networking.hostName;
|
"identity.fxaccounts.account.device.name" = nixosConfig.networking.hostName;
|
||||||
|
# Do not interfere with spotify
|
||||||
|
"media.hardwaremediakeys.enabled" = false;
|
||||||
|
|
||||||
# Enable ETP for decent security (makes firefox containers and many
|
# Enable ETP for decent security (makes firefox containers and many
|
||||||
# common security/privacy add-ons redundant).
|
# common security/privacy add-ons redundant).
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{ nixpkgs, ... }:
|
{ inputs, nixpkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Taken from https://github.com/Misterio77/nix-config/blob/main/overlay/default.nix
|
# Taken from https://github.com/Misterio77/nix-config/blob/main/overlay/default.nix
|
||||||
# By specifying this we can just add our derivation to derivations/default.nix and it will land here
|
# By specifying this we can just add our derivation to derivations/default.nix and it will land here
|
||||||
additions = final: prev: import ../derivations { pkgs = final; };
|
additions = final: prev: import ../derivations { inherit inputs; pkgs = final; };
|
||||||
|
|
||||||
in
|
in
|
||||||
# TODO: I have absolutely no clue what happens here lol
|
# TODO: I have absolutely no clue what happens here lol
|
||||||
|
Reference in New Issue
Block a user