Compare commits
6 commits
d672adb440
...
f3787cdc75
| Author | SHA1 | Date | |
|---|---|---|---|
| f3787cdc75 | |||
| b33173ebf4 | |||
| bc44187c23 | |||
| e99b236818 | |||
| d1ed5e96fb | |||
| 013ea36d25 |
3 changed files with 59 additions and 1 deletions
12
flake.lock
generated
12
flake.lock
generated
|
|
@ -166,9 +166,21 @@
|
||||||
"neovim-dotfiles": "neovim-dotfiles",
|
"neovim-dotfiles": "neovim-dotfiles",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"plasma-manager": "plasma-manager",
|
"plasma-manager": "plasma-manager",
|
||||||
|
"secrets": "secrets",
|
||||||
"zen-browser": "zen-browser"
|
"zen-browser": "zen-browser"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"secrets": {
|
||||||
|
"locked": {
|
||||||
|
"path": "./secrets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "./secrets",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"parent": []
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
|
||||||
41
flake.nix
41
flake.nix
|
|
@ -28,6 +28,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
assets.url = "git+https://dario48.site/git/Dario48/NixOs.git?ref=assets";
|
assets.url = "git+https://dario48.site/git/Dario48/NixOs.git?ref=assets";
|
||||||
|
secrets.url = "./secrets";
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
|
|
@ -189,7 +190,45 @@
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
# Enable networking
|
# 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.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
|
||||||
7
secrets/flake.nix
Normal file
7
secrets/flake.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
outputs =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
private-key-password = "...";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue