1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: rename potksed to kroma

This commit is contained in:
oddlama 2023-09-10 12:46:26 +02:00
parent 4b5507f374
commit 3749c8ef56
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
9 changed files with 3 additions and 7 deletions

44
hosts/kroma/net.nix Normal file
View file

@ -0,0 +1,44 @@
{
config,
lib,
...
}: {
networking = {
inherit (config.repo.secrets.local.networking) hostId;
wireless.iwd.enable = true;
};
boot.initrd.systemd.network = {
enable = true;
networks = {inherit (config.systemd.network.networks) "10-lan1";};
};
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.lan1.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
};
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
"10-wlan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.wlan1.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
};
dhcpV4Config.RouteMetric = 40;
dhcpV6Config.RouteMetric = 40;
};
};
networking.nftables.firewall = {
zones = lib.mkForce {
untrusted.interfaces = ["lan1" "wlan1"];
};
};
}