Modify installed programs
This commit is contained in:
parent
8a1f1cce31
commit
6cff17017b
|
@ -1,6 +1,11 @@
|
||||||
{ pkgs, config, nur, ... }:
|
{ pkgs, config, lib, nur, ... }:
|
||||||
let
|
{
|
||||||
# FireFox theme, based on https://github.com/Dook97/firefox-qutebrowser-userchrome
|
config = lib.mkIf config.home.desktop.enable {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.librewolf;
|
||||||
|
profiles = let
|
||||||
|
# FireFox css, based on https://github.com/Dook97/firefox-qutebrowser-userchrome
|
||||||
themeFont = ''
|
themeFont = ''
|
||||||
--tab-font: '${config.look.fonts.main}';
|
--tab-font: '${config.look.fonts.main}';
|
||||||
--urlbar-font: '${config.look.fonts.main}';
|
--urlbar-font: '${config.look.fonts.main}';
|
||||||
|
@ -27,9 +32,8 @@ let
|
||||||
--urlbar-not-focused-bg-color: #${config.look.colors.prime};
|
--urlbar-not-focused-bg-color: #${config.look.colors.prime};
|
||||||
--toolbar-bgcolor: #${config.look.colors.prime} !important;
|
--toolbar-bgcolor: #${config.look.colors.prime} !important;
|
||||||
'';
|
'';
|
||||||
in {
|
|
||||||
# Enable Librewolf and extensions
|
# Profile settings
|
||||||
programs.firefox = let
|
|
||||||
commonExtensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
commonExtensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
ublock-origin
|
ublock-origin
|
||||||
bitwarden
|
bitwarden
|
||||||
|
@ -79,7 +83,6 @@ in {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
||||||
definedAliases = [ "@p" ];
|
definedAliases = [ "@p" ];
|
||||||
};
|
};
|
||||||
"MyNixOS" = {
|
"MyNixOS" = {
|
||||||
|
@ -129,10 +132,6 @@ in {
|
||||||
name = "Kernel";
|
name = "Kernel";
|
||||||
url = "https://www.kernel.org";
|
url = "https://www.kernel.org";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "Github";
|
|
||||||
url = "https://github.com";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
commonSettings = {
|
commonSettings = {
|
||||||
"general.autoScroll" = true;
|
"general.autoScroll" = true;
|
||||||
|
@ -214,9 +213,6 @@ in {
|
||||||
"media.rdd-ffmpeg.enabled" = true;
|
"media.rdd-ffmpeg.enabled" = true;
|
||||||
"media.hardware-video-decoding.force-enabled" = true;
|
"media.hardware-video-decoding.force-enabled" = true;
|
||||||
|
|
||||||
"gfx.webrender.all" = true;
|
|
||||||
"gfx.x11-egl.force-enabled" = true;
|
|
||||||
|
|
||||||
"signon.rememberSignons" = false;
|
"signon.rememberSignons" = false;
|
||||||
"signon.management.page.breach-alerts.enabled" = false;
|
"signon.management.page.breach-alerts.enabled" = false;
|
||||||
|
|
||||||
|
@ -231,6 +227,7 @@ in {
|
||||||
"middlemouse.paste" = false;
|
"middlemouse.paste" = false;
|
||||||
|
|
||||||
"identity.fxaccounts.enabled" = false;
|
"identity.fxaccounts.enabled" = false;
|
||||||
|
"gfx.webrender.all" = true;
|
||||||
"sidebar.position_start" = false;
|
"sidebar.position_start" = false;
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
"svg.context-properties.content.enabled" = true;
|
"svg.context-properties.content.enabled" = true;
|
||||||
|
@ -241,9 +238,6 @@ in {
|
||||||
"webgl.disabled" = false;
|
"webgl.disabled" = false;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
enable = config.home.desktop.enable;
|
|
||||||
package = pkgs.librewolf;
|
|
||||||
profiles = {
|
|
||||||
Main = {
|
Main = {
|
||||||
id = 0;
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
@ -290,4 +284,5 @@ in {
|
||||||
sha256 = "095sv1ann2v7q5bfy65i118ylhp2vkpbgyf6fz84nd9yrx14rzwm";
|
sha256 = "095sv1ann2v7q5bfy65i118ylhp2vkpbgyf6fz84nd9yrx14rzwm";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,7 @@
|
||||||
qemu = {
|
qemu = {
|
||||||
ovmf = {
|
ovmf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
packages = [
|
packages = with pkgs; [ OVMFFull.fd ];
|
||||||
pkgs.OVMFFull.fd
|
|
||||||
pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue