nixos: fix network only on sway with systemd-networkd
This commit is contained in:
parent
641a558528
commit
63c0fa7a1f
|
@ -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; };
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue