mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
5 commits
2c2af2aea2
...
77dc32f91c
| Author | SHA1 | Date | |
|---|---|---|---|
| 77dc32f91c | |||
| cf2cf553e0 | |||
| 90e1880e75 | |||
| 83081607ea | |||
| c7e5e65062 |
6 changed files with 29 additions and 9 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
4
nix/configurations/hetzner_benchmark/nixos/programs.nix
Normal file
4
nix/configurations/hetzner_benchmark/nixos/programs.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
# Helps with kitty when ssh from remote
|
||||||
|
environment.enableAllTerminfo = true;
|
||||||
|
}
|
||||||
|
|
@ -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"
|
||||||
]
|
]
|
||||||
""
|
""
|
||||||
|
|
|
||||||
|
|
@ -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 [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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 江";
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue