mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ isLaptop, ... }:
|
|
|
|
{
|
|
# Enable networking
|
|
networking = {
|
|
networkmanager = {
|
|
enable = true;
|
|
wifi.backend = "iwd";
|
|
};
|
|
|
|
wireless.iwd.settings = {
|
|
General = {
|
|
AddressRandomization = "once";
|
|
};
|
|
Network = {
|
|
EnableIPv6 = true;
|
|
};
|
|
Settings = {
|
|
AutoConnect = true;
|
|
};
|
|
Rank = {
|
|
BandModifier2_4GHZ = 1.0;
|
|
BandModifier5GHZ = 1.1;
|
|
BandModifier6GHZ = 2.0;
|
|
};
|
|
};
|
|
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
57621 # Spotify discovery port
|
|
25565 # Minecraft
|
|
7777 7778 27015 27016
|
|
];
|
|
allowedUDPPorts = [
|
|
5353 # Spotify discovery port
|
|
7777 7778 27015 27016 # Satisfactory dedicated server (etc) ports
|
|
];
|
|
};
|
|
|
|
# Configure network proxy if necessary
|
|
# proxy.default = "http://user:password@proxy:port/";
|
|
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
};
|
|
|
|
hardware.bluetooth = {
|
|
enable = isLaptop;
|
|
powerOnBoot = false;
|
|
};
|
|
|
|
services.blueman.enable = isLaptop;
|
|
}
|