Files
.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
hypr
kernel-patches
audio.nix
configuration.nix
default.nix
desktop.nix
fingerprint.nix
fonts.nix
graphics.nix
hardware.nix
polkit.nix
programs.nix
secrets.yaml
steam.nix
wifi.nix
zerotier.nix
bob
jeeves
jeeves-jr
palatine-hill
rhapsody-in-green
users
.envrc
.gitconfig
.gitignore
.sops.yaml
checks.nix
flake.lock
flake.nix
shell.nix
sops-mergetool.sh
statix.toml
treefmt.toml
nix-dotfiles/systems/artemision/wifi.nix
ahuston-0 0d6c05f708 wifi fixes
artemision is currently having some really weird issues whenever its
using the local unbound DNS, so this is demoting the local DNS and
adding some public networks

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 18:39:27 +00:00

57 lines
1.1 KiB
Nix

{ config, ... }:
let
always = 100;
home = 99;
in
{
networking.wireless = {
enable = true;
environmentFile = config.sops.secrets."wifi-env".path;
userControlled.enable = true;
networks = {
"taetaethegae-2.0" = {
psk = "@PASS_taetaethegae_20@";
priority = home;
};
"k" = {
psk = "@PASS_k@";
priority = always;
};
"Bloomfield".psk = "@PASS_bloomfield@";
"9872441500".psk = "@PASS_longboat_home@";
"9872441561".psk = "@PASS_longboat_home@";
"5HuFios".psk = "@PASS_longboat_home@";
"24HuFios".psk = "@PASS_longboat_home@";
"optimumwifi" = { };
"CableWiFi" = { };
};
};
networking.nameservers = [
"9.9.9.9"
"1.1.1.1"
"192.168.76.1"
];
services.resolved = {
enable = true;
dnssec = "true";
domains = [ "~." ];
fallbackDns = [
"1.1.1.1#one.one.one.one"
"1.0.0.1#one.one.one.one"
];
dnsovertls = "true";
};
sops = {
defaultSopsFile = ./secrets.yaml;
secrets = {
"wifi-env" = {
owner = "root";
restartUnits = [ "wpa_supplicant.service" ];
};
};
};
}