Commit 2a925e158721

Vincent Demeester <vincent@sbr.pm>
2025-05-12 23:00:10
wakasu: small update before deletion
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c557f30
Changed files (1)
systems
systems/hosts/wakasu.nix
@@ -8,8 +8,8 @@ let
 
   endpointIP = strings.optionalString secretCondition (import secretPath).wg.endpointIP;
   endpointPort = if secretCondition then (import secretPath).wg.listenPort else 0;
-  endpointPublicKey = strings.optionalString secretCondition (import secretPath)
-  .wireguard.kerkouane.publicKey;
+  endpointPublicKey = strings.optionalString secretCondition
+    (import secretPath).wireguard.kerkouane.publicKey;
   metadata = importTOML ../../ops/hosts.toml;
 
   # Scripts
@@ -19,7 +19,7 @@ let
   '';
   roadmode = pkgs.writeShellScriptBin "roadmode" ''
     echo "100" > /sys/class/power_supply/BAT0/charge_control_end_threshold
-    echo "99" > /sys/class/power_supply/BAT0/charge_control_start_threshold
+    echo "0" > /sys/class/power_supply/BAT0/charge_control_start_threshold
   '';
 in
 {
@@ -44,7 +44,7 @@ in
     fsType = "vfat";
   };
 
-  swapDevices = [ { device = "/dev/disk/by-uuid/ab056cfc-fb17-4db7-a393-f93726cc2987"; } ];
+  swapDevices = [{ device = "/dev/disk/by-uuid/ab056cfc-fb17-4db7-a393-f93726cc2987"; }];
 
   networking = {
     hostName = hostname;