455 current 2025-06-28 04:47:33 25.05.20250424.f771eb4 6.12.24 *
This commit is contained in:
8
system/networking/blockers.sh
Normal file
8
system/networking/blockers.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
websites=("www.reddit.com" "reddit.com" "www.youtube.com" "youtube.com" "www.instagram.com" "instagram.com" "www.facebook.com" "facebook.com" "www.craigslist.org" "craigslist.org" "www.ebay.com" "ebay.com" "www.monkeytype.com" "monkeytype.com" "www.typeracer.com" "typeracer.com" "www.twitter.com" "twitter.com" "www.linkedin.com" "linkedin.com" "tinder.com")
|
||||
|
||||
for website in ${websites[@]}; do
|
||||
grep -v "$website" /etc/hosts > "$tempHosts"
|
||||
mv "$tempHosts" /etc/hosts
|
||||
done
|
||||
@@ -12,12 +12,23 @@
|
||||
"127.0.0.1" = ["localhost"];
|
||||
};
|
||||
|
||||
networkmanager.enable = true;
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
# dispatcherScripts = [
|
||||
# {
|
||||
# source = ./blockers.sh;
|
||||
# type = "basic";
|
||||
# }
|
||||
# ];
|
||||
};
|
||||
|
||||
# interfaces = {
|
||||
# enp0s31f6 = {};
|
||||
# wlp4s0 = {};
|
||||
# };
|
||||
|
||||
# ensures wireless is wlan0, eth is eth0;
|
||||
# predictable interfaces is kinda sussy innit?
|
||||
usePredictableInterfaceNames = false;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user