Add basic librewolf and chromium configuration

This commit is contained in:
Hoang Nguyen 2024-03-31 00:00:00 +07:00
parent 8f5b2fc728
commit 7ba4267984
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
8 changed files with 56 additions and 27 deletions

View File

@ -28,11 +28,11 @@
]
},
"locked": {
"lastModified": 1710717205,
"narHash": "sha256-Wf3gHh5uV6W1TV/A8X8QJf99a5ypDSugY4sNtdJDe0A=",
"lastModified": 1711763326,
"narHash": "sha256-sXcesZWKXFlEQ8oyGHnfk4xc9f2Ip0X/+YZOq3sKviI=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "bcc8afd06e237df060c85bad6af7128e05fd61a3",
"rev": "36524adc31566655f2f4d55ad6b875fb5c1a4083",
"type": "github"
},
"original": {
@ -48,11 +48,11 @@
]
},
"locked": {
"lastModified": 1711261295,
"narHash": "sha256-5DUNQl9BSmLxgGLbF05G7hi/UTk9DyZq8AuEszhQA7Q=",
"lastModified": 1711588700,
"narHash": "sha256-vBB5HoQVnA6c/UrDOhLXKAahEwSRccw2YXYHxD7qoi4=",
"owner": "nix-community",
"repo": "disko",
"rev": "5d2d3e421ade554b19b4dbb0d11a04023378a330",
"rev": "502241afa3de2a24865ddcbe4c122f4546e32092",
"type": "github"
},
"original": {
@ -144,11 +144,11 @@
]
},
"locked": {
"lastModified": 1711133180,
"narHash": "sha256-WJOahf+6115+GMl3wUfURu8fszuNeJLv9qAWFQl3Vmo=",
"lastModified": 1711625603,
"narHash": "sha256-W+9dfqA9bqUIBV5u7jaIARAzMe3kTq/Hp2SpSVXKRQw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb",
"rev": "c0ef0dab55611c676ad7539bf4e41b3ec6fa87d2",
"type": "github"
},
"original": {
@ -191,11 +191,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1711372858,
"narHash": "sha256-OS07Su2TnH/WqMcdk/vzi1FIw1WwYVUtzCGnKmrEl4Q=",
"lastModified": 1711442573,
"narHash": "sha256-/A3YzcY5erYOPojp5Ffwgxv4X5MTnRiWwuaXfgXbK2g=",
"owner": "nix-community",
"repo": "lanzaboote",
"rev": "d67e1cc1374e2a11be6bbd21237a1e7fdf63afa9",
"rev": "df7ac26bd24fac8baa94d60a02c3e0f0d4d16368",
"type": "github"
},
"original": {
@ -226,11 +226,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1711163522,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=",
"lastModified": 1711703276,
"narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4",
"rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"type": "github"
},
"original": {
@ -282,11 +282,11 @@
]
},
"locked": {
"lastModified": 1711295162,
"narHash": "sha256-gPTTYKvdnmaLcgOSpqtKHIf8J60J3Z4jAqXTwluxxUk=",
"lastModified": 1711799416,
"narHash": "sha256-BM3aduxJjvSL0jTYG1ixWDhBvIWuouycvprKQYP0FnM=",
"owner": "pjones",
"repo": "plasma-manager",
"rev": "8a032af55ed686ab21e60530080462a1438812b9",
"rev": "25b222a95a764bb76b7082746e8a1115c46ae2d8",
"type": "github"
},
"original": {
@ -412,11 +412,11 @@
]
},
"locked": {
"lastModified": 1710781103,
"narHash": "sha256-nehQK/XTFxfa6rYKtbi8M1w+IU1v5twYhiyA4dg1vpg=",
"lastModified": 1711803027,
"narHash": "sha256-Qic3OvsVLpetchzaIe2hJqgliWXACq2Oee6mBXa/IZQ=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "7ee5aaac63c30d3c97a8c56efe89f3b2aa9ae564",
"rev": "1810d51a015c1730f2fe05a255258649799df416",
"type": "github"
},
"original": {
@ -438,11 +438,11 @@
]
},
"locked": {
"lastModified": 1711329441,
"narHash": "sha256-wa567C8H/aW1IEKl4E2GhDQPAgZKPojdY37vxAwQxkc=",
"lastModified": 1711761168,
"narHash": "sha256-w7GgKhBcrg1B72Ymb24rDeAoHsNwZdF8OghR4VxGYHk=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "65b353b57d3c064f87d9ae3c1cd71cdb63d702b6",
"rev": "5fae7231f16bd5467660c50e7d6a3732559443a0",
"type": "github"
},
"original": {

View File

@ -0,0 +1,18 @@
# TODO: set commandLineArgs (for Wayland and MacOS separately)
{ pkgs, ... }: {
programs.chromium = {
package = pkgs.ungoogled-chromium;
dictionaries = [ pkgs.hunspellDictsChromium.en_US ];
extensions = [
{
id = "ocaahdebbfolfmndjeplogmgcagdmblk"; # Chromium Web Store
updateUrl = "https://raw.githubusercontent.com/NeverDecaf/chromium-web-store/master/updates.xml";
}
{ id = "lckanjgmijmafbedllaakclkaicjfmnk"; } # ClearURLs
{ id = "fhcgjolkccmbidfldomjliifgaodjagh"; } # Cookie AutoDelete
{ id = "ldpochfccmkkmhdbclfhpagapcfdljkj"; } # Decentraleyes
{ id = "ddkjiahejlhfcafbddmgiahcphecmpfh"; } # uBlock Origin Lite
{ id = "mnjggcdmjocbbbhaepdhchncahnbgone"; } # SponsorBlock for YouTube
];
};
}

View File

@ -1,6 +1,6 @@
{ osConfig, config, lib, ... }: {
programs.git = {
# Placeholders, since other modules use it
# Placeholder, since other modules use it
signing.key = lib.mkDefault null;
userName = "${osConfig.users.users.${config.home.username}.description}";

View File

@ -0,0 +1,10 @@
_: {
programs.librewolf.settings = {
"privacy.resistFingerprinting" = true;
"privacy.resistFingerprinting.letterboxing" = true;
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
"security.OCSP.require" = true;
"network.http.referer.XOriginPolicy" = 2;
"media.autoplay.blocking_policy" = 2;
};
}

View File

@ -22,6 +22,7 @@ in
lua-language-server
marksman
nil
nixpkgs-fmt
nls
taplo
# terraform-ls

View File

@ -62,6 +62,7 @@ in
# mage
MAGEFILE_ENABLE_COLOR = "true";
# skip chromium/electron download
PUPPETEER_EXECUTABLE_PATH = "${config.programs.chromium.package}/bin/chromium-browser";
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "true";
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
};

View File

@ -75,12 +75,12 @@
taplo
templ
tokei
tor-browser
tree-sitter
trivy
typst
typstfmt
valgrind
vial
virt-manager
wl-clipboard-rs
yq

View File

@ -57,7 +57,6 @@ in
experimental-features = [
"auto-allocate-uids"
"ca-derivations"
"configurable-impure-env"
"flakes"
"nix-command"
];