Files
.github
.vscode
docs
hydra
keys
modules
systems
users
alice
home
systems
artemision
kernel-patches
audio.nix
configuration.nix
default.nix
desktop.nix
fingerprint.nix
fonts.nix
graphics.nix
hardware.nix
non-server.nix
polkit.nix
programs.nix
secrets.yaml
steam.nix
wifi.nix
zerotier.nix
configuration.nix
non-server.nix
programs.nix
default.nix
home.nix
secrets.yaml
richie
default.nix
.envrc
.gitignore
.sops.yaml
flake.lock
flake.nix
treefmt.toml
nix-dotfiles/users/alice/systems/artemision/wifi.nix
2024-04-13 13:22:13 -04:00

43 lines
939 B
Nix

{ config, ... }:
{
networking.wireless = {
enable = true;
environmentFile = config.sops.secrets."wifi-env".path;
networks = {
"taetaethegae-2.0".psk = "@PASS_taetaethegae_20@";
"k".psk = "@PASS_k@";
"Bloomfield".psk = "@PASS_bloomfield@";
"9872441500".psk = "@PASS_longboat_home@";
"9872441561".psk = "@PASS_longboat_home@";
"5HuFios".psk = "@PASS_longboat_home@";
"24HuFios".psk = "@PASS_longboat_home@";
};
};
networking.nameservers = [
"192.168.76.1"
"9.9.9.9"
];
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" ];
};
};
};
}