Compare commits

..

2 commits

Author SHA1 Message Date
Natsu Kagami 177f0f686e
Set timezone to just default 2024-09-14 15:58:13 +03:00
Natsu Kagami 4fe33b7e80
Use new vpn format 2024-09-14 15:58:13 +03:00
2 changed files with 8 additions and 6 deletions

View file

@ -4,12 +4,14 @@ let
name = "openconnect-epfl";
runtimeInputs = with pkgs; [ openconnect rbw ];
text = ''
GASPAR_PASSWORD=$(rbw get gaspar)
GASPAR_TOKEN=$(rbw code gaspar)
METHOD="Microsoft Entra ID"
RBW_ENTRY="EPFL Microsoft Auth"
GASPAR_PASSWORD=$(rbw get "$RBW_ENTRY")
GASPAR_TOKEN=$(rbw code "$RBW_ENTRY")
printf "%s\n%s\n" "$GASPAR_PASSWORD" "$GASPAR_TOKEN" | sudo openconnect \
printf "\n%s\n%s\n%s\n" "$METHOD" "$GASPAR_PASSWORD" "$GASPAR_TOKEN" | command sudo openconnect \
--passwd-on-stdin \
-u pham \
-u "pham" \
--useragent='AnyConnect' \
"https://vpn.epfl.ch"
'';

View file

@ -273,7 +273,7 @@ in
services.tailscale.enable = true;
## Time and Region
time.timeZone = "Europe/Zurich";
time.timeZone = lib.mkDefault "Europe/Zurich";
# Select internationalisation properties.
console.keyMap = "jp106"; # Console key layout
i18n.defaultLocale = "ja_JP.UTF-8";