Compare commits
2 commits
5ecad94dcb
...
177f0f686e
Author | SHA1 | Date | |
---|---|---|---|
Natsu Kagami | 177f0f686e | ||
Natsu Kagami | 4fe33b7e80 |
|
@ -4,13 +4,15 @@ let
|
||||||
name = "openconnect-epfl";
|
name = "openconnect-epfl";
|
||||||
runtimeInputs = with pkgs; [ openconnect rbw ];
|
runtimeInputs = with pkgs; [ openconnect rbw ];
|
||||||
text = ''
|
text = ''
|
||||||
GASPAR_PASSWORD=$(rbw get gaspar)
|
METHOD="Microsoft Entra ID"
|
||||||
GASPAR_TOKEN=$(rbw code gaspar)
|
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 \
|
--passwd-on-stdin \
|
||||||
-u pham \
|
-u "pham" \
|
||||||
--useragent='AnyConnect' \
|
--useragent='AnyConnect' \
|
||||||
"https://vpn.epfl.ch"
|
"https://vpn.epfl.ch"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -273,7 +273,7 @@ in
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
## Time and Region
|
## Time and Region
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = lib.mkDefault "Europe/Zurich";
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
console.keyMap = "jp106"; # Console key layout
|
console.keyMap = "jp106"; # Console key layout
|
||||||
i18n.defaultLocale = "ja_JP.UTF-8";
|
i18n.defaultLocale = "ja_JP.UTF-8";
|
||||||
|
|
Loading…
Reference in a new issue