From 2c118ecad327b39e14bb4e58d8ed29d331da55b6 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:30:00 +0200 Subject: [PATCH] hurrrrrrrrrrrrrr --- home-manager/syncthing.nix | 4 ++++ modules/collections/desktop.nix | 1 + modules/firewall.nix | 1 + modules/static-ip.nix | 4 ---- systems/pc/userdata.nix | 3 +++ users/kopatz/home.nix | 1 + 6 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 home-manager/syncthing.nix diff --git a/home-manager/syncthing.nix b/home-manager/syncthing.nix new file mode 100644 index 0000000..0d67e90 --- /dev/null +++ b/home-manager/syncthing.nix @@ -0,0 +1,4 @@ +{ pkgs, ... }: +{ + services.syncthing.enable = true; +} diff --git a/modules/collections/desktop.nix b/modules/collections/desktop.nix index c0564de..3dd31f3 100644 --- a/modules/collections/desktop.nix +++ b/modules/collections/desktop.nix @@ -30,6 +30,7 @@ ../support/ntfs.nix ../tmpfs.nix ../virt-manager.nix + ../static-ip.nix ../wireshark.nix #../fh/forensik.nix #../graphical/hyprland.nix diff --git a/modules/firewall.nix b/modules/firewall.nix index 6114084..41c3461 100644 --- a/modules/firewall.nix +++ b/modules/firewall.nix @@ -4,5 +4,6 @@ let in { networking.firewall.enable = true; + networking.firewall.allowedUDPPorts = [ 5000 ]; networking.firewall.allowedUDPPortRanges = allowedUDPPortRanges; } diff --git a/modules/static-ip.nix b/modules/static-ip.nix index 8a9f1cc..d650448 100644 --- a/modules/static-ip.nix +++ b/modules/static-ip.nix @@ -8,10 +8,6 @@ in networking = { defaultGateway = "192.168.0.1"; useDHCP = false; - firewall = { - enable = true; - allowedUDPPorts = [ 5000 ]; - }; nameservers = [ dns "1.1.1.1" diff --git a/systems/pc/userdata.nix b/systems/pc/userdata.nix index 5291ae3..c8d6e72 100644 --- a/systems/pc/userdata.nix +++ b/systems/pc/userdata.nix @@ -1,5 +1,8 @@ { + interface = "enp42s0"; + ipv4 = "192.168.0.11"; + dns = "192.168.0.6"; # IOMMU Group 16 2b:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090] [10de:2204] (rev a1) # IOMMU Group 16 2b:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1) gpu_vga = "10de:2204"; diff --git a/users/kopatz/home.nix b/users/kopatz/home.nix index 9842bb8..af570a6 100644 --- a/users/kopatz/home.nix +++ b/users/kopatz/home.nix @@ -23,6 +23,7 @@ ../../home-manager/kitty.nix ../../home-manager/rofi.nix ../../home-manager/kde-path.nix + #../../home-manager/syncthing.nix inputs.nix-colors.homeManagerModule ];