Added Chromium Configuration
This commit is contained in:
parent
36e06252b4
commit
3d6702ebc1
2 changed files with 60 additions and 1 deletions
59
homes/x86_64-linux/kb@Ohybke/chromium.nix
Normal file
59
homes/x86_64-linux/kb@Ohybke/chromium.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
package = pkgs.ungoogled-chromium;
|
||||
commandLineArgs = [
|
||||
"--extension-mime-request-handling=always-prompt-for-install" # Enable Extension-Install Dialogue
|
||||
"--enable-features=ClearDataOnExit,NoReferrers,SpoofWebGLInfo" # Feature Flags
|
||||
"--no-default-browser-check"
|
||||
];
|
||||
extensions = let
|
||||
createChromiumExtensionFor = browserVersion: { id, sha256, version }: {
|
||||
inherit id;
|
||||
crxPath = builtins.fetchurl {
|
||||
url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc";
|
||||
name = "${id}.crx";
|
||||
inherit sha256;
|
||||
};
|
||||
inherit version;
|
||||
};
|
||||
createChromiumExtension = createChromiumExtensionFor (lib.versions.major pkgs.ungoogled-chromium.version);
|
||||
in [
|
||||
{ # Chromium Web Store
|
||||
id = "ocaahdebbfolfmndjeplogmgcagdmblk";
|
||||
crxPath = builtins.fetchurl {
|
||||
url = "https://github.com/NeverDecaf/chromium-web-store/releases/download/v1.5.4.3/Chromium.Web.Store.crx";
|
||||
name = "ocaahdebbfolfmndjeplogmgcagdmblk.crx";
|
||||
sha256 = "sha256:0ck5k4gs5cbwq1wd5i1aka5hwzlnyc4c513sv13vk9s0dlhbz4z5";
|
||||
};
|
||||
version = "1.5.4.3";
|
||||
}
|
||||
(createChromiumExtension { # uBlock Origin
|
||||
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||
version = "1.64.0";
|
||||
})
|
||||
(createChromiumExtension { # I still don't care about cookies
|
||||
id = "edibdbjcniadpccecjdfdjjppcpchdlm";
|
||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||
version = "1.1.4";
|
||||
})
|
||||
(createChromiumExtension { # KeePassXC-Browser
|
||||
id = "oboonakemofpalcgghocfoadofidjkkk";
|
||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||
version = "1.9.8";
|
||||
})
|
||||
(createChromiumExtension { # LanguageTool
|
||||
id = "oldceeleldhonbafppcapldpdifcinji";
|
||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||
version = "8.20.0";
|
||||
})
|
||||
(createChromiumExtension { # dark reader
|
||||
id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";
|
||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||
version = "4.9.106";
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./chromium.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
||||
|
@ -16,7 +17,6 @@
|
|||
libreoffice-qt6-fresh
|
||||
logseq
|
||||
kdePackages.itinerary
|
||||
ungoogled-chromium
|
||||
# Security
|
||||
gnupg
|
||||
keepassxc
|
||||
|
|
Loading…
Add table
Reference in a new issue