Skip to content

Commit

Permalink
feat: even more schizo
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Dec 25, 2023
1 parent aa52223 commit 5e44a0f
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 0 deletions.
162 changes: 162 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@
inputs.nixpkgs.follows = "nixpkgs";
};

schizofox = {
url = "path:/home/sioodmy/dev/schizofox";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
nixpak.follows = "nixpak";
};
};

crabpulsar = {
url = "github:sioodmy/crabpulsar";
# url = "path:/home/sioodmy/dev/crabpulsar";
Expand Down
1 change: 1 addition & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
imports = [
inputs.nix-index-db.hmModules.nix-index
inputs.crabpulsar.homeManagerModule
inputs.schizofox.homeManagerModule
inputs.impermanence.nixosModules.home-manager.impermanence
./packages.nix
./impermanence.nix
Expand Down
11 changes: 11 additions & 0 deletions home/misc/chromium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
pkgs,
...
}: {
home.packages = [
(pkgs.makeDesktopItem {
name = "Torium";
desktopName = "Torium";
genericName = "Web Browser";
exec = ''chromium --proxy-server "socks5://127.0.0.1:9050"'';
terminal = false;
categories = ["Application" "Network" "WebBrowser"];
mimeTypes = ["text/html" "text/xml"];
})
];
programs.chromium = {
package = pkgs.ungoogled-chromium;
enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/misc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./media.nix
./chromium.nix
./vencord
./schizofox.nix
./rnnoise.nix
./swayidle.nix
];
Expand Down
18 changes: 18 additions & 0 deletions home/misc/schizofox.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{...}: {
programs.schizofox = {
enable = true;
theme = {
background-darker = "181825";
background = "1e1e2e";
foreground = "cdd6f4";
font = "Lexend";
simplefox.enable = true;
darkreader.enable = true;
};
search.searxRandomizer.enable = true;

extensions.extraExtensions = {
"webextension@metamask.io".install_url = "https://addons.mozilla.org/firefox/downloads/latest/ether-metamask/latest.xpi";
};
};
}
33 changes: 33 additions & 0 deletions system/core/schizo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,40 @@
enable = true;
allowAnyUser = true;
};
tor = {
enable = true;
client.enable = true;
};
networkd-dispatcher = {
enable = true;
rules."restart-tor" = {
onState = ["routable" "off"];
script = ''
#!${pkgs.runtimeShell}
if [[ $IFACE == "wlan0" && $AdministrativeState == "configured" ]]; then
echo "Restarting Tor ..."
systemctl restart tor
fi
exit 0
'';
};
};
};

programs.proxychains = {
enable = true;
quietMode = false;
proxyDNS = true;
package = pkgs.proxychains-ng;
proxies = {
tor = {
type = "socks5";
host = "127.0.0.1";
port = 9050;
};
};
};

programs.ssh.startAgent = true;
programs.wireshark.enable = true;
security = {
Expand Down

0 comments on commit 5e44a0f

Please sign in to comment.