From b2808addc4b35cdaf776ccef856c51756cd86fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Dec 2025 19:35:13 +0100 Subject: nixos: add kamera hosts --- nixos/configurations/binky.nix | 8 +------- nixos/configurations/zd-mox.nix | 20 ++++++++++++++++---- nixos/modules/hosts.nix | 2 ++ 3 files changed, 19 insertions(+), 11 deletions(-) (limited to 'nixos') diff --git a/nixos/configurations/binky.nix b/nixos/configurations/binky.nix index 6d8e5c3..dba1114 100644 --- a/nixos/configurations/binky.nix +++ b/nixos/configurations/binky.nix @@ -1,10 +1,4 @@ -{ - lib, - pkgs, - ... -}: let - inherit (lib) mkDefault; -in { +{pkgs, ...}: { system.stateVersion = "24.05"; nixpkgs.hostPlatform.system = "x86_64-linux"; deploy = { diff --git a/nixos/configurations/zd-mox.nix b/nixos/configurations/zd-mox.nix index 3796af0..bba9010 100644 --- a/nixos/configurations/zd-mox.nix +++ b/nixos/configurations/zd-mox.nix @@ -1,4 +1,8 @@ -{config, ...}: let +{ + config, + pkgs, + ... +}: let hosts = config.cynerd.hosts.zd; in { system.stateVersion = "25.05"; @@ -110,9 +114,12 @@ in { # user and password added in secrets ''; }; - systemd.services."pppd-wan" = { - after = ["sys-subsystem-net-devices-end0.848.device"]; - partOf = ["systemd-networkd.service"]; + systemd.services = { + "pppd-wan" = { + requires = ["sys-subsystem-net-devices-end0.848.device"]; + partOf = ["systemd-networkd.service"]; + }; + "systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug"; }; # TODO limit NSS clamping to just pppoe-wan networking.firewall.extraForwardRules = '' @@ -140,4 +147,9 @@ in { certs."zd.cynerd.cz" = {}; }; networking.firewall.allowedTCPPorts = [80 443]; + + environment.systemPackages = with pkgs; [ + nmap + tcpdump + ]; } diff --git a/nixos/modules/hosts.nix b/nixos/modules/hosts.nix index bd5a5ab..81bd844 100644 --- a/nixos/modules/hosts.nix +++ b/nixos/modules/hosts.nix @@ -32,6 +32,8 @@ in { # Network "mox" = "10.8.0.1"; "one0" = "10.8.0.2"; + "camera1" = "10.8.0.21"; + "camera2" = "10.8.0.22"; # Local "ridcully" = "10.8.0.59"; "tc" = "10.8.0.99"; -- cgit v1.2.3