Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Add wifi network priority

+17 -6
+17 -6
modules/nixos/base/default.nix
··· 63 63 }; 64 64 65 65 # Networking 66 - networking.firewall = { 67 - enable = true; 68 - allowedTCPPorts = [ 69 - 57621 # spotify local discovery 70 - 5353 # spotify cast discovery 71 - ]; 66 + networking = { 67 + firewall = { 68 + enable = true; 69 + allowedTCPPorts = [ 70 + 57621 # spotify local discovery 71 + 5353 # spotify cast discovery 72 + ]; 73 + }; 74 + dhcpcd.extraConfig = 75 + let wifiOffset = 2000; 76 + in '' 77 + ssid Lpchaim5G 78 + metric ${toString (wifiOffset - 20)} 79 + 80 + ssid Lpchaim 81 + metric ${toString (wifiOffset - 10)} 82 + ''; 72 83 }; 73 84 74 85 # Internationalization