auto reboop invidious and try doing chromium shenangans
This commit is contained in:
parent
13fb0589a7
commit
2d2fc539c0
18
flake.lock
18
flake.lock
|
@ -41,11 +41,11 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1641121012,
|
||||
"narHash": "sha256-svaOMxNMQgFHjcxdmLojOxTxfqSENtnO+S3kb+npIwY=",
|
||||
"lastModified": 1641700429,
|
||||
"narHash": "sha256-+Pd33S+4+VX6RYGJQ5Q4n46+iRLr9y9ilq9oC/bcnoc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "8e7a10602d1eb1d242c9d3f9b822203d5751a8c6",
|
||||
"rev": "a90ddcd62748e445bbbe01834595eda29dc28db9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -72,11 +72,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1641194805,
|
||||
"narHash": "sha256-LyPsFnE/yjzeQbqFVampztn6mKkWTD5Q2TRyrReqcZE=",
|
||||
"lastModified": 1641671388,
|
||||
"narHash": "sha256-aHoO6CpPLJK8hLkPJrpMnCRnj3YbfQZ7HNcXcnI83E0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c38ca58c0b4b5d9423609c58636988a9f81325d6",
|
||||
"rev": "32356ce11b8cc5cc421b68138ae8c730cc8ad4a2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -86,11 +86,11 @@
|
|||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1640959792,
|
||||
"narHash": "sha256-zYSR//06FU2TDOpKKj0Hkff6unsxk3NwwNFuB1loU6E=",
|
||||
"lastModified": 1641528457,
|
||||
"narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "59bfda72480496f32787cec8c557182738b1bd3f",
|
||||
"rev": "ff377a78794d412a35245e05428c8f95fef3951f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
38
home/apps/chromium.nix
Normal file
38
home/apps/chromium.nix
Normal 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"; }
|
||||
];
|
||||
};
|
||||
}
|
|
@ -2,10 +2,10 @@
|
|||
home.packages = with pkgs; [
|
||||
steam
|
||||
lutris
|
||||
mgba
|
||||
nestopia
|
||||
snes9x-gtk
|
||||
melonDS
|
||||
#mgba
|
||||
#nestopia
|
||||
#snes9x-gtk
|
||||
#melonDS
|
||||
sixpair
|
||||
xboxdrv
|
||||
];
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = 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; [
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.invidious.serviceConfig = {
|
||||
Restart = "always";
|
||||
RuntimeMaxSec = "1200";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."invidious-unproxied.owo.monster" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
profiles.network_manager
|
||||
profiles.sway
|
||||
profiles.dnscrypt
|
||||
#profiles.gaming
|
||||
profiles.gaming
|
||||
# for sci-hub and whenever websites break
|
||||
#profiles.tor
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
|||
home.base
|
||||
#home.bluetooth
|
||||
home.gui
|
||||
#home.gaming
|
||||
home.gaming
|
||||
home.dev.all
|
||||
home.network_manager
|
||||
home.sway
|
||||
|
@ -35,6 +35,7 @@
|
|||
home.apps.vivaldi
|
||||
home.apps.telegram
|
||||
home.apps.quassel
|
||||
home.apps.chromium
|
||||
#home.apps.osu-lazer
|
||||
home.programming
|
||||
#home.programming.languages.go
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
profiles.tailscale
|
||||
profiles.sshd
|
||||
|
||||
hosts.raspberry.services.router
|
||||
#hosts.raspberry.services.router
|
||||
|
||||
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||
];
|
||||
|
|
|
@ -6,6 +6,6 @@ cd $REPO_ROOT
|
|||
|
||||
git add .
|
||||
|
||||
deploy ".#lappy"
|
||||
deploy ".#hetzner-vm"
|
||||
deploy ".#raspberry"
|
||||
deploy -s ".#lappy"
|
||||
deploy -s ".#hetzner-vm"
|
||||
deploy -s ".#raspberry" -- --no-sandbox
|
||||
|
|
Loading…
Reference in a new issue