This commit is contained in:
bogale 2026-11-08 13:02:44 +09:00
commit 5489d920ae
4 changed files with 14 additions and 8 deletions

View file

@ -8,7 +8,6 @@
allowedUDPPorts = [ allowedUDPPorts = [
53 53
547 547
67
69 69
]; ];
}; };

View file

@ -5,6 +5,7 @@
loader.limine.secureBoot.enable = true; loader.limine.secureBoot.enable = true;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
#dnsmasq
nixfmt-tree nixfmt-tree
openssl openssl
sops sops
@ -16,6 +17,7 @@
./vps-init.nix ./vps-init.nix
]; ];
networking = { networking = {
firewall.allowedUDPPorts = [ 67 ];
networkmanager.ensureProfiles = { networkmanager.ensureProfiles = {
environmentFiles = [ config.sops.secrets.wifi-env.path ]; environmentFiles = [ config.sops.secrets.wifi-env.path ];
profiles = { profiles = {
@ -28,6 +30,7 @@
id = "home-wifi"; id = "home-wifi";
type = "wifi"; type = "wifi";
}; };
ipv6.method = "disabled";
wifi-security = { wifi-security = {
key-mgmt = "sae"; key-mgmt = "sae";
psk = "$BOGALE_PSK"; psk = "$BOGALE_PSK";

View file

@ -1,5 +1,5 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
boot.kernelParams = [ "consoleblank=60" ]; boot.kernelParams = [ "cfg80211.ieee80211_regdom=RU" "consoleblank=60" ];
imports = [ imports = [
../mods/host.nix ../mods/host.nix
./hardware.nix ./hardware.nix
@ -23,11 +23,7 @@
dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6"; dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6";
home-wifi = { home-wifi = {
ipv4 = { ipv4 = {
addresses = "10.1.0.1/16"; addresses = "10.3.0.1/16";
method = "shared";
};
ipv6 = {
addresses = "fc01::1/64";
method = "shared"; method = "shared";
}; };
wifi = { wifi = {
@ -36,6 +32,11 @@
channel-width = 80; channel-width = 80;
mode = "ap"; mode = "ap";
}; };
wifi-security = {
group = "ccmp";
pairwise = "ccmp";
proto = "rsn";
};
}; };
}; };
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path; wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;

View file

@ -41,7 +41,10 @@
echo $limit > /run/network.limit echo $limit > /run/network.limit
echo $failures > /run/network.failures echo $failures > /run/network.failures
''; '';
serviceConfig.Type = "oneshot"; serviceConfig = {
LogLevelMax = "warning";
Type = "oneshot";
};
}; };
tgbot-send = { tgbot-send = {
script = '' script = ''