nixos: fix network only on sway with systemd-networkd

This commit is contained in:
genofire 2021-12-02 23:30:42 +01:00
parent 641a558528
commit 63c0fa7a1f
2 changed files with 31 additions and 31 deletions

View File

@ -2,6 +2,37 @@
{
imports = [./desktop.nix];
systemd.network.networks.wifi = {
matchConfig = {
Name = "wlan0";
SSID = "!HotoHo-v6";
};
DHCP = "ipv4";
networkConfig = {
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
systemd.network.networks.wifi-v6 = {
matchConfig = {
Name = "wlan0";
SSID = "HotoHo-v6";
};
networkConfig = {
DNSSEC = false;
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
systemd.network.networks.eth = {
matchConfig.Name = "enp*";
DHCP = "ipv4";
networkConfig = {
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
programs.sway = {
enable = true;
wrapperFeatures = { gtk = true; };

View File

@ -18,37 +18,6 @@
};
};
systemd.network.networks.wifi = {
matchConfig = {
Name = "wlan0";
SSID = "!HotoHo-v6";
};
DHCP = "ipv4";
networkConfig = {
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
systemd.network.networks.wifi-v6 = {
matchConfig = {
Name = "wlan0";
SSID = "HotoHo-v6";
};
networkConfig = {
DNSSEC = false;
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
systemd.network.networks.eth = {
matchConfig.Name = "enp*";
DHCP = "ipv4";
networkConfig = {
IPv6AcceptRA = true;
IPv6PrivacyExtensions = true;
};
};
hardware.bluetooth.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false; #use pipewire