summaryrefslogtreecommitdiff
path: root/machines/radon
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-02-13 15:53:54 -0500
committerKleidi Bujari <mail@4kb.net>2025-02-13 15:53:54 -0500
commit0287a28426b6fc8452e73d037820213638c97659 (patch)
tree5c21bd3cb3f4c9a6cdd679259db3726ca4d3a986 /machines/radon
parent221d7084c23dce02e3f47ab18db2bfba78efe83b (diff)
downloaddepot-0287a28426b6fc8452e73d037820213638c97659.tar.gz
depot-0287a28426b6fc8452e73d037820213638c97659.tar.bz2
depot-0287a28426b6fc8452e73d037820213638c97659.zip
feb2025 sprint
Diffstat (limited to 'machines/radon')
-rw-r--r--machines/radon/default.nix31
1 files changed, 23 insertions, 8 deletions
diff --git a/machines/radon/default.nix b/machines/radon/default.nix
index c87a3d3..e1a62e5 100644
--- a/machines/radon/default.nix
+++ b/machines/radon/default.nix
@@ -1,14 +1,15 @@
-{ lib, inputs, ... }:
+{ inputs, ... }:
let
- gitKeys = builtins.fetchurl {
- url = "https://github.com/kbujari.keys";
- sha256 = "1kskbiyqvjz1wsmcrgh9v0iryf33y70zk503z0m96wmzdjllmc94";
- };
inherit (inputs.nixos-hardware.nixosModules)
common-cpu-intel
common-gpu-intel
;
+
+ interfaces = {
+ bottom = "enp1s0";
+ top = "enp2s0";
+ };
in
{
imports = [
@@ -21,7 +22,22 @@ in
system.stateVersion = "24.11";
networking.hostName = "radon";
- users.users.root.initialPassword = "hello";
+ boot.kernel.sysctl = {
+ "net.ipv4.conf.all.forwarding" = true;
+ "net.ipv6.conf.all.forwarding" = true;
+ };
+
+ services.unbound.settings.server = {
+ interface = [ "10.88.88.2" ];
+ access-control = [
+ "10.88.88.0/24 allow"
+ ];
+ };
+
+ networking.firewall.interfaces.plaza = {
+ allowedTCPPorts = [ 53 ];
+ allowedUDPPorts = [ 53 ];
+ };
users.groups.media.gid = 2000;
@@ -37,14 +53,13 @@ in
};
net = {
join = [ "plaza" ];
- interface = "enp1s0";
+ interface = interfaces.bottom;
sshd.enable = true;
};
nginx.enable = true;
gitServer = {
enable = true;
gitweb.enable = true;
- keys = lib.splitString "\n" (builtins.readFile gitKeys);
};
};
}