2021-10-08 05:48:27 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2021-10-27 01:35:00 +02:00
|
|
|
networking.wireless.iwd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
AddressRandomization = "network";
|
|
|
|
# EnableNetworkConfiguration = false;
|
|
|
|
|
|
|
|
RoamThreshold = -70;
|
|
|
|
RoamThreshold5G = -90;
|
|
|
|
RoamRetryInterval = 10;
|
|
|
|
};
|
|
|
|
# Network.EnableIPv6 = true;
|
|
|
|
|
|
|
|
Rank.BandModifier5Ghz = 5.0;
|
|
|
|
# Scan.DisablePeriodicScan = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
systemd.network.networks.wifi = {
|
2021-10-27 11:54:17 +02:00
|
|
|
matchConfig = {
|
|
|
|
Name = "wlan0";
|
|
|
|
SSID = "!HotoHo-v6";
|
|
|
|
};
|
2021-10-13 00:47:43 +02:00
|
|
|
DHCP = "ipv4";
|
2021-10-15 19:32:20 +02:00
|
|
|
networkConfig = {
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
2021-10-13 00:47:43 +02:00
|
|
|
};
|
2021-10-27 11:54:17 +02:00
|
|
|
systemd.network.networks.wifi-v6 = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "wlan0";
|
|
|
|
SSID = "HotoHo-v6";
|
|
|
|
};
|
|
|
|
networkConfig = {
|
|
|
|
DNSSEC = false;
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
};
|
2021-10-23 19:39:06 +02:00
|
|
|
systemd.network.networks.eth = {
|
|
|
|
matchConfig.Name = "enp*";
|
|
|
|
DHCP = "ipv4";
|
|
|
|
networkConfig = {
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
};
|
2021-10-08 05:48:27 +02:00
|
|
|
|
2021-11-06 13:13:46 +01:00
|
|
|
hardware.bluetooth.enable = true;
|
2021-10-13 00:47:43 +02:00
|
|
|
sound.enable = true;
|
2021-11-26 20:03:09 +01:00
|
|
|
hardware.pulseaudio.enable = false; #use pipewire
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
# alsa.support32bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2021-10-09 01:09:39 +02:00
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
iw
|
2021-11-26 20:03:09 +01:00
|
|
|
pulseaudio-modules-bt
|
2021-10-13 00:47:43 +02:00
|
|
|
];
|
2021-10-09 01:09:39 +02:00
|
|
|
|
2021-11-26 20:03:09 +01:00
|
|
|
programs.browserpass.enable = true;
|
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
# smartcard
|
|
|
|
services.pcscd.enable = true;
|
2021-11-26 20:03:09 +01:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryFlavor = "gnome3";
|
|
|
|
};
|
2021-12-02 23:29:56 +01:00
|
|
|
|
|
|
|
programs.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
# openFirewall = true; - by enable
|
|
|
|
};
|
|
|
|
|
2021-10-08 05:48:27 +02:00
|
|
|
}
|