From 3cc91cc0dafa1b299100f06c8389d04d8b95d3b3 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 1 May 2023 11:17:14 +0200 Subject: q-power_supply: print status --- krebs/5pkgs/simple/q-power_supply.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'krebs') diff --git a/krebs/5pkgs/simple/q-power_supply.nix b/krebs/5pkgs/simple/q-power_supply.nix index 627e3f905..ef133bfbd 100644 --- a/krebs/5pkgs/simple/q-power_supply.nix +++ b/krebs/5pkgs/simple/q-power_supply.nix @@ -63,6 +63,7 @@ writeDashBin "q-power_supply" '' END { name = ENVIRON["POWER_SUPPLY_NAME"] + status = ENVIRON["POWER_SUPPLY_STATUS"] charge_unit = "Ah" charge_now = ENVIRON["POWER_SUPPLY_CHARGE_NOW"] / 10^6 @@ -132,6 +133,8 @@ writeDashBin "q-power_supply" '' out = out sprintf(" %s", print_hm(charge_now / current_now)) } + out = out " " status + print out } ' -- cgit v1.2.3 From b60be1128bf5525cf78b9b57afd19e001cd5a9d3 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 2 May 2023 20:39:46 +0200 Subject: konsens: all directories are safe --- krebs/3modules/konsens.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'krebs') diff --git a/krebs/3modules/konsens.nix b/krebs/3modules/konsens.nix index 439bcc7f4..d27a702fb 100644 --- a/krebs/3modules/konsens.nix +++ b/krebs/3modules/konsens.nix @@ -66,6 +66,8 @@ let Type = "simple"; PermissionsStartOnly = true; ExecStart = pkgs.writeDash "konsens-${name}" '' + set -efu + git config --global --replace-all safe.directory * if ! test -e ${name}; then git clone ${repo.url} ${name} fi -- cgit v1.2.3