auto reboop invidious and try doing chromium shenangans

This commit is contained in:
ChaotiCryptidz 2022-01-09 21:30:13 +00:00
parent 13fb0589a7
commit 2d2fc539c0
8 changed files with 67 additions and 19 deletions

View file

@ -41,11 +41,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1641121012, "lastModified": 1641700429,
"narHash": "sha256-svaOMxNMQgFHjcxdmLojOxTxfqSENtnO+S3kb+npIwY=", "narHash": "sha256-+Pd33S+4+VX6RYGJQ5Q4n46+iRLr9y9ilq9oC/bcnoc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8e7a10602d1eb1d242c9d3f9b822203d5751a8c6", "rev": "a90ddcd62748e445bbbe01834595eda29dc28db9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -72,11 +72,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1641194805, "lastModified": 1641671388,
"narHash": "sha256-LyPsFnE/yjzeQbqFVampztn6mKkWTD5Q2TRyrReqcZE=", "narHash": "sha256-aHoO6CpPLJK8hLkPJrpMnCRnj3YbfQZ7HNcXcnI83E0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c38ca58c0b4b5d9423609c58636988a9f81325d6", "rev": "32356ce11b8cc5cc421b68138ae8c730cc8ad4a2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -86,11 +86,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1640959792, "lastModified": 1641528457,
"narHash": "sha256-zYSR//06FU2TDOpKKj0Hkff6unsxk3NwwNFuB1loU6E=", "narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "59bfda72480496f32787cec8c557182738b1bd3f", "rev": "ff377a78794d412a35245e05428c8f95fef3951f",
"type": "github" "type": "github"
}, },
"original": { "original": {

38
home/apps/chromium.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, lib, ... }:
let
getExtension = { id, url, sha256, version, updateUrl }: {
inherit id;
crxPath = builtins.fetchurl {
url = "${url}";
name = "${id}.crx";
inherit sha256;
};
inherit version;
inherit updateUrl;
};
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;
};
#updateUrl = "http://clients2.google.com/service/update2/crx?response=updatecheck&x=id%3D${id}%26uc";
updateUrl = "https://clients2.google.com/service/update2/crx";
inherit version;
};
createChromiumExtension = createChromiumExtensionFor
(lib.versions.major pkgs.vivaldi.version);
in {
programs.chromium = {
enable = true;
package = pkgs.vivaldi;
extensions = [
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; }
{ id = "clngdbkpkpeebahjckkjfobafhncgmne"; }
{ id = "adicoenigffoolephelklheejpcpoolk"; }
];
};
}

View file

@ -2,10 +2,10 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
steam steam
lutris lutris
mgba #mgba
nestopia #nestopia
snes9x-gtk #snes9x-gtk
melonDS #melonDS
sixpair sixpair
xboxdrv xboxdrv
]; ];

View file

@ -7,6 +7,10 @@
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1; QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;
_JAVA_AWT_WM_NONREPARENTING = 1; _JAVA_AWT_WM_NONREPARENTING = 1;
GDK_SCALE = 2;
GDK_DPI_SCALE = 0.5;
XCURSOR_SIZE = 64;
QT_AUTO_SCREEN_SCALE_FACTOR = 1;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -32,6 +32,11 @@
}; };
}; };
systemd.services.invidious.serviceConfig = {
Restart = "always";
RuntimeMaxSec = "1200";
};
services.nginx.virtualHosts."invidious-unproxied.owo.monster" = { services.nginx.virtualHosts."invidious-unproxied.owo.monster" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

View file

@ -14,7 +14,7 @@
profiles.network_manager profiles.network_manager
profiles.sway profiles.sway
profiles.dnscrypt profiles.dnscrypt
#profiles.gaming profiles.gaming
# for sci-hub and whenever websites break # for sci-hub and whenever websites break
#profiles.tor #profiles.tor
@ -27,7 +27,7 @@
home.base home.base
#home.bluetooth #home.bluetooth
home.gui home.gui
#home.gaming home.gaming
home.dev.all home.dev.all
home.network_manager home.network_manager
home.sway home.sway
@ -35,6 +35,7 @@
home.apps.vivaldi home.apps.vivaldi
home.apps.telegram home.apps.telegram
home.apps.quassel home.apps.quassel
home.apps.chromium
#home.apps.osu-lazer #home.apps.osu-lazer
home.programming home.programming
#home.programming.languages.go #home.programming.languages.go

View file

@ -8,7 +8,7 @@
profiles.tailscale profiles.tailscale
profiles.sshd profiles.sshd
hosts.raspberry.services.router #hosts.raspberry.services.router
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix") (modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
]; ];

View file

@ -6,6 +6,6 @@ cd $REPO_ROOT
git add . git add .
deploy ".#lappy" deploy -s ".#lappy"
deploy ".#hetzner-vm" deploy -s ".#hetzner-vm"
deploy ".#raspberry" deploy -s ".#raspberry" -- --no-sandbox