generated from andy/linux-nixos-hyprland-config-dotfiles
Initial commit
This commit is contained in:
23
nixos/mac-randomize.nix
Normal file
23
nixos/mac-randomize.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# When connecting to untrusted networks, such as public Wi-Fi use a random MAC address to prevent tracking and unauthorized access to your device.
|
||||
# But my recommendation is to avoid untrusted networks whenever possible, opting for trusted home or mobile hotspot connections.
|
||||
# Also, you can enhance your privacy and security by:
|
||||
# - Employing a VPN (Virtual Private Network) to encrypt internet traffic.
|
||||
# - Utilizing Encrypted DNS, with DNS over HTTPS (DoH) to encrypt communication with the DNS server and mask DNS traffic under HTTPS.
|
||||
|
||||
# Enable MAC Randomize
|
||||
systemd.services.macchanger = {
|
||||
enable = true;
|
||||
description = "Change MAC address";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.macchanger}/bin/macchanger -r wlp0s20f3";
|
||||
ExecStop = "${pkgs.macchanger}/bin/macchanger -p wlp0s20f3";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user