Compare commits

...

6 commits

Author SHA1 Message Date
f3787cdc75 fix eduroam no.3 2026-04-14 14:57:17 +02:00
b33173ebf4 fix eduroam no.2 2026-04-14 14:55:37 +02:00
bc44187c23 fix eduroam no. 1 2026-04-14 14:54:23 +02:00
e99b236818 add eduroam stuff 2026-04-14 14:52:57 +02:00
d1ed5e96fb get secrets from secrets 2026-04-14 14:23:58 +02:00
013ea36d25 add fake secrets file 2026-04-14 14:20:31 +02:00
3 changed files with 59 additions and 1 deletions

12
flake.lock generated
View file

@ -166,9 +166,21 @@
"neovim-dotfiles": "neovim-dotfiles",
"nixpkgs": "nixpkgs",
"plasma-manager": "plasma-manager",
"secrets": "secrets",
"zen-browser": "zen-browser"
}
},
"secrets": {
"locked": {
"path": "./secrets",
"type": "path"
},
"original": {
"path": "./secrets",
"type": "path"
},
"parent": []
},
"systems": {
"locked": {
"lastModified": 1681028828,

View file

@ -28,6 +28,7 @@
};
assets.url = "git+https://dario48.site/git/Dario48/NixOs.git?ref=assets";
secrets.url = "./secrets";
};
outputs =
{
@ -189,7 +190,45 @@
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
networking.networkmanager = {
enable = true;
ensureProfiles.profiles = {
eduroam = {
connection = {
id = "eduroam";
type = "wifi";
interface-name = "wlo1"; # # replace with your interface-name as displayed by "ip a"
};
wifi = {
mode = "infrastructure";
ssid = "eduroam";
};
wifi-security = {
group = "ccmp";
pairwise = "ccmp";
proto = "rsn";
key-mgmt = "wpa-eap";
};
"802-1x" = {
altsubject_match = "DNS:eduroam.unimi.it";
# # not all or even some additional values may be needed here according to your institution
eap = "peap"; # # adapt according to your universities setup
anonimous-identity = inputs.secrets.eduroam.username;
identity = inputs.secrets.eduroam.username;
password = inputs.secrets.eduroam.password;
phase2-auth = "mschapv2";
ca-cert = "/etc/ssl/certs/eduroam/cert.pem";
ca-path = "/etc/ssl/certs/eduroam/";
};
ipv4 = {
method = "auto";
};
ipv6 = {
method = "auto";
};
};
};
};
# Set your time zone.
time.timeZone = "Europe/Rome";

7
secrets/flake.nix Normal file
View file

@ -0,0 +1,7 @@
{
outputs =
{ ... }:
{
private-key-password = "...";
};
}