Compare commits

..

5 commits

6 changed files with 29 additions and 9 deletions

View file

@ -52,6 +52,7 @@ in
./hetzner_benchmark/nixos/hardware-configuration.nix ./hetzner_benchmark/nixos/hardware-configuration.nix
./hetzner_benchmark/nixos/misc.nix ./hetzner_benchmark/nixos/misc.nix
./hetzner_benchmark/nixos/programs.nix
../nixosModules/common/fish.nix ../nixosModules/common/fish.nix
../nixosModules/common/disable-command-not-found.nix ../nixosModules/common/disable-command-not-found.nix

View file

@ -0,0 +1,4 @@
{
# Helps with kitty when ssh from remote
environment.enableAllTerminfo = true;
}

View file

@ -76,8 +76,10 @@ config =
, "--target", "2025-09-16=snip snip" , "--target", "2025-09-16=snip snip"
, "--target", "2025-10-13=no teef" , "--target", "2025-10-13=no teef"
, "--target", "2025-10-31=dragon book" , "--target", "2025-10-31=dragon book"
, "--target", "2025-11-21=scalpel"
, "--target", "2025-11-21=baguette"
, "--target", "2025-11-29=à deux" , "--target", "2025-11-29=à deux"
, "--target", "2025-12-16=dragon book²" , "--target", "2025-12-16=dragon book"
, "--target", "2025-12-30=seule" , "--target", "2025-12-30=seule"
] ]
"" ""

View file

@ -44,6 +44,10 @@
user = "confusedkernel"; user = "confusedkernel";
hash = "sha256-9DdtDAcv+2Z0jJMSLAXbp5ne8uHYj5V/lNGi0kKSdv4="; hash = "sha256-9DdtDAcv+2Z0jJMSLAXbp5ne8uHYj5V/lNGi0kKSdv4=";
} }
{
user = "gautaz";
hash = "sha256-j0I9l8uKfzKNrc2qveFi5mkRppxL36+BUEqvFPs6vqA=";
}
] ]
++ map fromUrl [ ++ map fromUrl [
{ {

View file

@ -81,6 +81,14 @@ in
hasPassword = true; hasPassword = true;
randomizeMac = true; randomizeMac = true;
} }
{
ssid = "R802";
randomizeMac = true;
}
{
ssid = "R1108";
randomizeMac = true;
}
{ ssid = "_SNCF_WIFI_INOUI"; } { ssid = "_SNCF_WIFI_INOUI"; }
{ ssid = "_WIFI_LYRIA"; } { ssid = "_WIFI_LYRIA"; }
@ -89,6 +97,7 @@ in
{ ssid = "AOT Airport Free Wi-Fi by NT"; } { ssid = "AOT Airport Free Wi-Fi by NT"; }
{ ssid = "NewTaipei"; } { ssid = "NewTaipei"; }
{ ssid = "Fami-WiFi"; } { ssid = "Fami-WiFi"; }
{ ssid = "THSR_freeWIFI_ALL"; }
{ {
ssid = "iPhone de Léana "; ssid = "iPhone de Léana ";

View file

@ -15,6 +15,8 @@ let
hasPassword ? false, hasPassword ? false,
scanOnLowSignal ? false, scanOnLowSignal ? false,
randomizeMac ? false, randomizeMac ? false,
# TODO: adapt to the 25.11 interface
bssid ? null,
... ...
}: }:
{ {
@ -24,20 +26,18 @@ let
"hasPassword" "hasPassword"
"scanOnLowSignal" "scanOnLowSignal"
"randomizeMac" "randomizeMac"
"bssid"
]) ])
(lib.optionalAttrs hasPassword { (lib.optionalAttrs hasPassword {
pskRaw = "ext:${escapePwdKey ssid}"; pskRaw = "ext:${escapePwdKey ssid}";
}) })
(lib.optionalAttrs scanOnLowSignal { {
extraConfig = '' extraConfig = ''
bgscan="simple:30:-70:3600" ${lib.optionalString scanOnLowSignal "bgscan=\"simple:30:-70:3600\""}
${lib.optionalString randomizeMac "mac_addr=1"}
${lib.optionalString (bssid != null) "bssid=\"${bssid}\""}
''; '';
}) }
(lib.optionalAttrs randomizeMac {
extraConfig = ''
mac_addr=1
'';
})
]; ];
}; };
in in