Add 37c3 networking
This commit is contained in:
parent
93953d72f9
commit
d63a4e6ded
2 changed files with 46 additions and 1 deletions
43
nixos/machines/cherry/37c3.nix
Normal file
43
nixos/machines/cherry/37c3.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
interface = "wlp170s0";
|
||||
in
|
||||
{
|
||||
networking.networkmanager.ensureProfiles.profiles = {
|
||||
"37C3" = {
|
||||
connection = {
|
||||
id = "37C3";
|
||||
type = "wifi";
|
||||
interface-name = interface;
|
||||
};
|
||||
wifi = {
|
||||
mode = "infrastructure";
|
||||
ssid = "37C3";
|
||||
};
|
||||
wifi-security = {
|
||||
auth-alg = "open";
|
||||
key-mgmt = "wpa-eap";
|
||||
};
|
||||
"802-1x" = {
|
||||
anonymous-identity = "37C3";
|
||||
eap = "ttls;";
|
||||
identity = "37C3";
|
||||
password = "37C3";
|
||||
phase2-auth = "pap";
|
||||
altsubject-matches = "DNS:radius.c3noc.net";
|
||||
ca-cert = "${builtins.fetchurl {
|
||||
url = "https://letsencrypt.org/certs/isrgrootx1.pem";
|
||||
sha256 = "sha256:1la36n2f31j9s03v847ig6ny9lr875q3g7smnq33dcsmf2i5gd92";
|
||||
}}";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
};
|
||||
ipv6 = {
|
||||
addr-gen-mode = "default";
|
||||
method = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
# last system packages that need to be migrated to components
|
||||
../../system/all/borg-jobs.nix
|
||||
#../../system/all/syncthing.nix
|
||||
../../system/server/netdata.nix
|
||||
#../../system/server/netdata.nix
|
||||
../../modules
|
||||
|
||||
../../components
|
||||
|
@ -22,6 +22,8 @@
|
|||
./qemu.nix
|
||||
./wireguard.nix
|
||||
|
||||
./37c3.nix
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue