Compare commits

...

3 commits

Author SHA1 Message Date
Sean Buckley
a3d33c1a98 update editorconfig 2024-09-10 00:31:45 -04:00
Sean Buckley
48965342de replace chromium with brave 2024-09-08 18:58:47 -04:00
Sean Buckley
7b58e3531a add brave backport script 2024-09-08 18:46:58 -04:00
4 changed files with 32 additions and 7 deletions

View file

@ -5,6 +5,6 @@ indent_style = tab
indent_style = space
indent_size = 2
[*.{py,sh}]
[*.py]
indent_style = space
indent_size = 4

28
modules/backport.nix Normal file
View file

@ -0,0 +1,28 @@
let
brave = (final: prev: {
brave =
let
# updates to the newer version before it hits the channels
version = "1";
hash = "";
in
if
prev.lib.versionAtLeast prev.brave.version version
then
prev.brave
else
prev.brave.overrideAttrs {
src = prev.fetchurl {
inherit hash;
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
};
};
});
in
{
nixpkgs.overlays = [
brave
];
}

View file

@ -1,9 +1,8 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
{
config = lib.mkIf (config.sconfig.desktop.enable) {
nixpkgs.config.chromium.commandLineArgs = toString [
"--enable-features=WebUIDarkMode"
"--force-dark-mode"
environment.systemPackages = [
pkgs.brave
];
programs.chromium = {
enable = true;
@ -20,7 +19,6 @@
ExtensionInstallForcelist = [
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimium
"fihnjjcciajhdojfnbdddfaoknhalnja" # I don't care about cookies
"jeoacafpbcihiomhlakheieifhpjdfeo" # Disconnect
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
];
NetworkPredictionOptions = 2;

View file

@ -52,7 +52,6 @@ with lib;
];
environment.systemPackages = with pkgs; [
chromium
discord
easyeffects
element-desktop