give up on ts
This commit is contained in:
parent
ad75b8fd72
commit
572876cb0c
1 changed files with 0 additions and 88 deletions
49
flake.nix
49
flake.nix
|
|
@ -11,11 +11,6 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hypr-kdeconnect-fix = {
|
||||
url = "github:niversesu/hypr-kdeconnect-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -69,7 +64,6 @@
|
|||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
inputs.hypr-kdeconnect-fix.nixosModules.default
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
# configure.nix {{{
|
||||
(
|
||||
{
|
||||
|
|
@ -236,49 +230,6 @@
|
|||
programs.regreet = {
|
||||
enable = true;
|
||||
};
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets/sops.yaml;
|
||||
age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
secrets."eduroam/password" = {};
|
||||
secrets."eduroam/username" = {};
|
||||
};
|
||||
system.activationScripts.eduroamNM = {
|
||||
deps = ["sops"];
|
||||
text = ''
|
||||
install -Dm600 /dev/stdin /etc/NetworkManager/system-connections/eduroam.nmconnection << EOF
|
||||
[connection]
|
||||
id=eduroam
|
||||
type=wifi
|
||||
interface-name=wlo1
|
||||
|
||||
[wifi]
|
||||
ssid=eduroam
|
||||
mode=infrastructure
|
||||
|
||||
[wifi-security]
|
||||
key-mgmt=wpa-eap
|
||||
group=ccmp
|
||||
pairwise=ccmp
|
||||
proto=rsn
|
||||
|
||||
[802-1x]
|
||||
eap=peap
|
||||
anonymous-identity=$(cat ${config.sops.secrets."eduroam/username".path})
|
||||
identity=$(cat ${config.sops.secrets."eduroam/username".path})
|
||||
password=$(cat ${config.sops.secrets."eduroam/password".path})
|
||||
phase2-auth=mschapv2
|
||||
ca-cert=/etc/ssl/certs/eduroam/cert.pem
|
||||
ca-path=/etc/ssl/certs/eduroam/
|
||||
altsubject-match=DNS:eduroam.unimi.it
|
||||
|
||||
[ipv4]
|
||||
method=auto
|
||||
|
||||
[ipv6]
|
||||
method=auto
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue