mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 00:03:54 -05:00
116 lines
2.6 KiB
Nix
116 lines
2.6 KiB
Nix
{
|
||
config,
|
||
inputs,
|
||
lib,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
imports = [./sambaAutoMount.nix];
|
||
config = lib.mkIf config.alyraffauf.base.enable {
|
||
age.secrets.wifi.file = ../../../secrets/wifi.age;
|
||
|
||
hardware = {
|
||
bluetooth.enable = true;
|
||
};
|
||
|
||
networking.networkmanager = {
|
||
enable = true;
|
||
|
||
ensureProfiles = {
|
||
environmentFiles = [
|
||
config.age.secrets.wifi.path
|
||
];
|
||
profiles = {
|
||
"Dustin’s iPhone" = {
|
||
connection = {
|
||
id = "Dustin’s iPhone";
|
||
type = "wifi";
|
||
};
|
||
wifi.ssid = "Dustin’s iPhone";
|
||
wifi-security = {
|
||
auth-alg = "open";
|
||
key-mgmt = "wpa-psk";
|
||
psk = "$DustinsiPhonePSK";
|
||
};
|
||
};
|
||
|
||
javapatron = {
|
||
connection = {
|
||
id = "javapatron";
|
||
type = "wifi";
|
||
};
|
||
wifi.ssid = "javapatron";
|
||
wifi-security = {
|
||
auth-alg = "open";
|
||
key-mgmt = "wpa-psk";
|
||
};
|
||
};
|
||
|
||
Stargate-Discovery = {
|
||
connection = {
|
||
id = "Stargate-Discovery";
|
||
type = "wifi";
|
||
};
|
||
wifi.ssid = "Stargate-Discovery";
|
||
wifi-security = {
|
||
auth-alg = "open";
|
||
key-mgmt = "wpa-psk";
|
||
psk = "$StargateDiscoveryPSK";
|
||
};
|
||
};
|
||
|
||
wattson = {
|
||
connection = {
|
||
id = "wattson";
|
||
type = "wifi";
|
||
};
|
||
wifi.ssid = "wattson";
|
||
wifi-security = {
|
||
auth-alg = "open";
|
||
key-mgmt = "wpa-psk";
|
||
psk = "$wattsonPSK";
|
||
};
|
||
};
|
||
|
||
WeWorkWiFi = {
|
||
"802-1x" = {
|
||
eap = "peap;";
|
||
identity = "$WeWorkWiFiIdentity";
|
||
password = "$WeWorkWiFiPassword";
|
||
phase2-auth = "mschapv2";
|
||
};
|
||
connection = {
|
||
id = "WeWorkWiFi";
|
||
type = "wifi";
|
||
};
|
||
wifi.ssid = "WeWorkWiFi";
|
||
wifi-security.key-mgmt = "wpa-eap";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
|
||
services = {
|
||
avahi = {
|
||
enable = true;
|
||
nssmdns4 = true;
|
||
openFirewall = true;
|
||
publish = {
|
||
enable = true;
|
||
addresses = true;
|
||
userServices = true;
|
||
workstation = true;
|
||
};
|
||
};
|
||
|
||
openssh = {
|
||
enable = true;
|
||
openFirewall = true;
|
||
settings.PasswordAuthentication = false;
|
||
};
|
||
|
||
printing.enable = true;
|
||
};
|
||
};
|
||
}
|