mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
Compare commits
3 commits
b0143c1141
...
a3d33c1a98
Author | SHA1 | Date | |
---|---|---|---|
|
a3d33c1a98 | ||
|
48965342de | ||
|
7b58e3531a |
4 changed files with 32 additions and 7 deletions
|
@ -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
28
modules/backport.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -52,7 +52,6 @@ with lib;
|
|||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
chromium
|
||||
discord
|
||||
easyeffects
|
||||
element-desktop
|
||||
|
|
Loading…
Reference in a new issue