about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-24 16:22:40 +0900
committersefidel <contact@sefidel.net>2024-01-24 16:22:54 +0900
commited8578cb356c5e714df07a8c3f4717b1a342d9a7 (patch)
treecbfa84767744564548e208e4cca314b7c882370a /nixos
parent32bba888a932416c11359f15caf50ef7c7297ce8 (diff)
downloadnixrc-ed8578cb356c5e714df07a8c3f4717b1a342d9a7.tar.gz
nixrc-ed8578cb356c5e714df07a8c3f4717b1a342d9a7.zip
feat(nixos/kanata): add blocky
Diffstat (limited to 'nixos')
-rw-r--r--nixos/default.nix1
-rw-r--r--nixos/kanata/configuration.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/default.nix b/nixos/default.nix
index dc7e5ef..1e4cc94 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -38,6 +38,7 @@
       ../modules/cachix
       ../modules/trayscale.nix
       ../modules/tailscale-initrd.nix
+      ../modules/services/blocky
       inputs.sops-nix.nixosModules.sops
       inputs.impermanence.nixosModules.impermanence
     ];
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix
index aac02f5..6bde8a6 100644
--- a/nixos/kanata/configuration.nix
+++ b/nixos/kanata/configuration.nix
@@ -94,6 +94,24 @@ in
   powerManagement.cpuFreqGovernor = "ondemand";
 
   sops.secrets.zfs-smol-key = { };
+  # sops.secrets.nextcloud-admin-pass = { };
+
+  boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
+  boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
+
+  networking.firewall.enable = true;
+
+  networking.nat = {
+    enable = true;
+    internalInterfaces = [ "ve-+" ];
+    externalInterface = "enp3s0";
+    # Lazy IPv6 connectivity for the container
+    enableIPv6 = true;
+  };
+
+  modules = {
+    services.blocky.enable = true;
+  };
 
   # This option defines the first version of NixOS you have installed on this particular machine,
   # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.