diff --git a/desktop/mods/pxeboot.nix b/desktop/mods/pxeboot.nix index c0de16e..e118e05 100644 --- a/desktop/mods/pxeboot.nix +++ b/desktop/mods/pxeboot.nix @@ -8,7 +8,6 @@ allowedUDPPorts = [ 53 547 - 67 69 ]; }; diff --git a/mods/host.nix b/mods/host.nix index 2387d86..111688f 100644 --- a/mods/host.nix +++ b/mods/host.nix @@ -5,6 +5,7 @@ loader.limine.secureBoot.enable = true; }; environment.systemPackages = with pkgs; [ + #dnsmasq nixfmt-tree openssl sops @@ -16,6 +17,7 @@ ./vps-init.nix ]; networking = { + firewall.allowedUDPPorts = [ 67 ]; networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets.wifi-env.path ]; profiles = { @@ -28,6 +30,7 @@ id = "home-wifi"; type = "wifi"; }; + ipv6.method = "disabled"; wifi-security = { key-mgmt = "sae"; psk = "$BOGALE_PSK"; diff --git a/server/configuration.nix b/server/configuration.nix index d1c110a..a8a803d 100644 --- a/server/configuration.nix +++ b/server/configuration.nix @@ -1,5 +1,5 @@ { config, pkgs, ... }: { - boot.kernelParams = [ "consoleblank=60" ]; + boot.kernelParams = [ "cfg80211.ieee80211_regdom=RU" "consoleblank=60" ]; imports = [ ../mods/host.nix ./hardware.nix @@ -23,11 +23,7 @@ dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6"; home-wifi = { ipv4 = { - addresses = "10.1.0.1/16"; - method = "shared"; - }; - ipv6 = { - addresses = "fc01::1/64"; + addresses = "10.3.0.1/16"; method = "shared"; }; wifi = { @@ -36,6 +32,11 @@ channel-width = 80; mode = "ap"; }; + wifi-security = { + group = "ccmp"; + pairwise = "ccmp"; + proto = "rsn"; + }; }; }; wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path; diff --git a/server/mods/system.nix b/server/mods/system.nix index 0b8f1cd..c282014 100644 --- a/server/mods/system.nix +++ b/server/mods/system.nix @@ -41,7 +41,10 @@ echo $limit > /run/network.limit echo $failures > /run/network.failures ''; - serviceConfig.Type = "oneshot"; + serviceConfig = { + LogLevelMax = "warning"; + Type = "oneshot"; + }; }; tgbot-send = { script = ''