Skip to content

Commit

Permalink
easyroam woop woop
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5a4 committed Nov 13, 2024
1 parent fb7cf01 commit 07dab57
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 14 deletions.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};

nix-easyroam.url = "github:0x5a4/nix-easyroam";

home-manager = {
url = "github:0x5a4/home-manager/init-wayfire";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
24 changes: 24 additions & 0 deletions host/secrets/easyroam
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"data": "ENC[AES256_GCM,data:DU82GkrLggTCvHQx4utnIfrzJY1gEEPR5s6vwWpjAfDqaFFly1ujXc2H+bzle2LV0WXlOq0AHsytgYMIcHLClgc+VJba73CzjKXnCgKZWoTd8ZYBBaGJBw3X1SBP1IfnFTpUri9RZ5qxPp3dO/Tk30W4VEDdbmQI3T/D+qKT2fxupZYofUfvl38FIyy3m8KXXmAfl+3ogm2E3OWW0GeR+JFfU89Ln9/+9NJORf3nDfIbUY7UzMKyEA5XZkF5J8/XkxVLN/2r8SJLIY4zdtfPvLY9kpOgFlcf8c3tnGUReArQnOvPXRbcAG9IZd0b/o+J/bvjWpQ7BeunhJqVd5xGaSPE6wwaHBNHlXMmI4uoWHwva2gF4rkyUeNkT8icmlOnr7REkBwFm9jX2QTbypNLuntZNQVmc9aNpMbr7xArMTLV9xfA8oOBLgRaGjUS46i4Jo6sYvv6uFpkHzLy62tJEti02KN6hd+sBHd+GEU9+j63lnzEZ+M9F4qPZYfhKKPvq6xAXn8ZQGMr5LVVa0RxPrFSWRurrZNOevvZ88QNm7sIUbjrDFSuHgC7TcIXckUJz2osZH1JLsHCULVdtkXFvsRouYudAaBe9DfMhkhEmfydQdI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/Rj6YxxdM/elD6TqaPpVV1sgRmbdU91aTRS/zMtux/eV/4ne91GBDKK0Xptnybq27VT33UoC2LFguut1W6wBxM3R+F2hcFk+ZhgeD0tteLwy89408XigRi6iWgrZvHHQp88axnHPBsV4S8pFAaN0nGWlGvgbk6ffHsJqnWksvvxwkBIZv618qoTalE8MFwnc2N1TrqYQXW77yT8uCav+Rw/jr/NowtOhNqG/gZbdAtELnUosM/rQwtQSaoG4UXAkOBn1ycvb39/QiHDfc+rXY5i5JttTUXX7l48m6hvYNMxMldzBuMpOG/2HQ7i3WqLBMIelC+xrSV4QvXwrTCDP7S/9aYBF2Fh4V6sFGlQLiLP/PDQMa9NJ/KZEmWEI6O8oSvsv50XcxvVWTbAhM+PKFz3J87sjQWqXxcx8M2RJf62bapWOgPRv+lWpMArQnTCVspfaH7DF1sdtrbTO5KE6hmTrt918E9CgG4FN7MyM8vldsNUaHROc5BYWVKYr/rbqYsPFcKlXlnMTUGgOAqCjFpDwisLKMxPFQLYIfOl3VTa0UT/ooqkxMJJd1LyNFLO,iv:Q8Ywu7OaQAXhQs7sBZ+Yd0DT2DX3GjtrAU3Kps+Z/Y4=,tag:rq7cud4hlZz87VTir+c4aA==,type:str]",
"sops": {
"kms": null,
"gcp_kms": null,
"azure_kv": null,
"hc_vault": null,
"age": [
{
"recipient": "age1n9e7ymdmcprdynwutygfvd6an2h9xcvpneehu9gcsd93vr0mvg5sqndy08",
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBGUDBlRHBvdUxFd2J1NVlP\nWThmYXk1OGt3TWgvMXRFNkxCL3NncVY1TXcwCnhqZDBYbDN6dnRpOEpWZys2b2lz\nY2p3S0lBVTd0dzJKRCtxWXNGLzZXWTQKLS0tIDBEeUZXTE1NTTk5QjhwSHpycVEy\nR2ZTbXBiazg4dyt3b2NiZTkrNmtEY2MKp+8rAC4XWL1hH3REDSDgD1T0nyQleL9+\nKBUW7zbp5ToAJ8NXefWRTTu//LEXrVgvusb7MVtZXrZBgsrStKeXpQ==\n-----END AGE ENCRYPTED FILE-----\n"
},
{
"recipient": "age1rs4fcwsjt7v0uja0v4a9aedrakmvl67sk69yjhzdsrusl3a29glsq40m5e",
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBocDAwc1A1bGUwR3hucDV6\nRkpKYlljQmF6T2cyRWNsb2dDTFF5Ymh3bTJ3CnJZR3N5Y29lcDFhcnBRcmRFQWZm\nb2hBU0VLV0p3ZWRoejloRDV6WUYyMmsKLS0tIC9oeWZsS25jZTY4eWh6WHRqbjdH\nMU5aV1BsdWJabE1IbGlnUUZqdHovM28K78VzfcCE+PtAdz0T0cGDRR8ZfhPI2wQr\nfkFXbTHbYvgLKbehB+ARWBAAktW1QcalJYxoZZMD6c196ZTdjBt8UA==\n-----END AGE ENCRYPTED FILE-----\n"
}
],
"lastmodified": "2024-11-13T20:23:51Z",
"mac": "ENC[AES256_GCM,data:IhUbutht4dZrHr8Yzvo8t9c7Py9dveGmaaZpDKWj4CY8dMJs+6geqeslt1MJp81kZD8cYsehLqhXOuGGSzhe7XGXWygv6GT8d/ALA0Nbv5qqbesTG6pAnytRa6a2P9URRs7dHPvjodXoZNNl3CMrMDm9MIxfe5pRnKvMsAFJFq4=,iv:OPoMB2eOhWpMY8HJ++p8SOcxKqkAQrQF66h1356O81Y=,tag:N+Zvbp0IP4e8iPpYzPzVdQ==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.9.1"
}
}
29 changes: 15 additions & 14 deletions host/share/wifi.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{ ... }:
{ config, ... }:
{
sops.secrets.easyroam = {
sopsFile = ../secrets/easyroam;
format = "binary";
};

services.easyroam = {
enable = true;
pkcsFile = config.sops.secrets.easyroam.path;
network = {
configure = true;
commonName = "3252125432889295763@easyroam-pca.uni-duesseldorf.de";
};
};

xfaf.services.wifi = {
enable = true;
secretsFile = ../secrets/wifi;
Expand All @@ -17,19 +31,6 @@
FelixPhone = "FELIXPHONE";
"bUm gast" = "BUMGAST";
WIFIonICE = { };
eduroam = {
auth = ''
key_mgmt=WPA-EAP
pairwise=CCMP
eap=TTLS
password=ext:EDUROAM_PASSWORD
altsubject_match="DNS:radius.hhu.de"
phase2="auth=PAP"
identity="bej86nug@hhu.de"
anonymous_identity="eduroam@hhu.de"
group=CCMP TKIP
'';
};
};
};
}
1 change: 1 addition & 0 deletions mod/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
inputs.sops.nixosModules.sops
inputs.stylix.nixosModules.stylix
inputs.disko.nixosModules.disko
inputs.nix-easyroam.nixosModules.nix-easyroam
];
}

0 comments on commit 07dab57

Please sign in to comment.