Commit 2a925e158721
Changed files (1)
systems
hosts
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;