From 31bb59f1d5f33fda4b90e764cefddb03f183d562 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 19 Feb 2025 22:28:35 +0100 Subject: [PATCH] add Snowflake to yodaTux --- hosts/yodaNas/host-specific.nix | 13 +------------ hosts/yodaTux/configuration.nix | 6 ++++++ modules/snowflake.nix | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 modules/snowflake.nix diff --git a/hosts/yodaNas/host-specific.nix b/hosts/yodaNas/host-specific.nix index b1d7bb6..7a952cf 100644 --- a/hosts/yodaNas/host-specific.nix +++ b/hosts/yodaNas/host-specific.nix @@ -1,21 +1,10 @@ { config, pkgs, ... }: { imports = [ + ../../modules/snowflake.nix ./syncthing.nix ]; - # Operating a Snowflake proxy helps others circumvent censorship. - # Safe to run. - # https://wiki.nixos.org/w/index.php?title=Tor - # - # TODO: Check if working. - # systemctl status snowflake-proxy.service - # - # Enable snowflake-proxy, a system to defeat internet censorship. - services.snowflake-proxy.enable = true; - # Maximum concurrent clients allowed. - services.snowflake-proxy.capacity = 10; - # Update and start Jinja-Compose project # during boot and after every 30 minutes. # To view the log, run diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 5b1453f..6cb5952 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -84,5 +84,11 @@ #../../modules/virt-manager.nix ../../modules/docker.nix ../../modules/docker-pushrm.nix + + # + # Activism + # + + ../../modules/snowflake.nix ]; } diff --git a/modules/snowflake.nix b/modules/snowflake.nix new file mode 100644 index 0000000..b5b798d --- /dev/null +++ b/modules/snowflake.nix @@ -0,0 +1,15 @@ +{ config, ... }: +{ + # Operating a Snowflake proxy helps others circumvent censorship. + # Safe to run. + # https://wiki.nixos.org/w/index.php?title=Tor + # + # Monitoring + # - systemctl status snowflake-proxy.service + # - https://codeberg.org/privacy1st/snowflake-stats + + # Enable snowflake-proxy, a system to defeat internet censorship. + services.snowflake-proxy.enable = true; + # Maximum concurrent clients allowed. + services.snowflake-proxy.capacity = 10; +} \ No newline at end of file