mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
changed chromium
This commit is contained in:
parent
8e86b90579
commit
f0070a33c7
6 changed files with 29 additions and 18 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
wm.sway.enable = true;
|
wm.sway.enable = true;
|
||||||
|
|
||||||
browser = {
|
browser = {
|
||||||
firefox.enable = true;
|
chromium.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
teamviewer.enable = true;
|
||||||
|
|
||||||
timesyncd = lib.mkDefault {
|
timesyncd = lib.mkDefault {
|
||||||
enable = true;
|
enable = true;
|
||||||
servers = [
|
servers = [
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -8,24 +8,40 @@ in
|
||||||
{ options.modules.user.gui.browser.chromium = { enable = mkEnableOption "Enable Chromium browser"; };
|
{ options.modules.user.gui.browser.chromium = { enable = mkEnableOption "Enable Chromium browser"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs = {
|
programs = {
|
||||||
chromium = {
|
chromium = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ungoogled-chromium;
|
package = pkgs.ungoogled-chromium;
|
||||||
extensions = [
|
extensions =
|
||||||
{
|
let
|
||||||
|
vrs = package.version;
|
||||||
|
in
|
||||||
|
[
|
||||||
|
rec {
|
||||||
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||||||
crxPath = /home/${config.user.name}/.config/chromium/Extensions/ublock.crx;
|
crxPath = builtins.fetchurl {
|
||||||
version = "1.58.0";
|
url = "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=${vrs}&acceptformat=crx2,crx3&x=id%3D${id}%26uc";
|
||||||
|
name = "ublock_${version}.crx";
|
||||||
|
sha256 = "0ycnkna72n969crgxfy2lc1qbndjqrj46b9gr5l9b7pgfxi5q0ll";
|
||||||
|
};
|
||||||
|
version = "1.62.0";
|
||||||
}
|
}
|
||||||
{
|
rec {
|
||||||
id = "dbepggeogbaibhgnhhndojpepiihcmeb";
|
id = "dbepggeogbaibhgnhhndojpepiihcmeb";
|
||||||
crxPath = /home/${config.user.name}/.config/chromium/Extensions/vimium.crx;
|
crxPath = builtins.fetchurl {
|
||||||
|
url = "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=${vrs}&acceptformat=crx2,crx3&x=id%3D${id}%26uc";
|
||||||
|
name = "vimium_${version}.crx";
|
||||||
|
sha256 = "0m8xski05w2r8igj675sxrlkzxlrl59j3a7m0r6c8pwcvka0r88d";
|
||||||
|
};
|
||||||
version = "2.1.2";
|
version = "2.1.2";
|
||||||
}
|
}
|
||||||
{
|
rec {
|
||||||
id = "naepdomgkenhinolocfifgehidddafch";
|
id = "naepdomgkenhinolocfifgehidddafch";
|
||||||
crxPath = /home/${config.user.name}/.config/chromium/Extensions/browserpass.crx;
|
crxPath = builtins.fetchurl {
|
||||||
version = "3.8.0";
|
url = "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=${vrs}&acceptformat=crx2,crx3&x=id%3D${id}%26uc";
|
||||||
|
name = "browserpass_${version}.crx";
|
||||||
|
sha256 = "074sc9hxh7vh5j79yjhsrnhb5k4dv3bh5vip0jr30hkkni7nygbd";
|
||||||
|
};
|
||||||
|
version = "3.9.0";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -33,12 +49,5 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
|
||||||
file.".config/chromium/Extensions" = {
|
|
||||||
source = ./config/extensions;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue