Compare commits

..

No commits in common. "25e93ab45c65e6dd842b65778c4dea360c5f2f7d" and "f9ed5be6709b4ed9d2dfde2b8021d9722b516da9" have entirely different histories.

2 changed files with 16 additions and 18 deletions

View File

@ -139,11 +139,9 @@ in
klogs = lib.mkDefault "${pkgs.writeShellScript "klogs" '' klogs = lib.mkDefault "${pkgs.writeShellScript "klogs" ''
ctx="$1" ctx="$1"
shift namespace="$2"
namespace="$1" label="$3"
shift echo=${pkgs.coreutils}/bin/echo
label="$1"
shift
if [[ "$ctx" == "" || "$namespace" == "" || "$label" == "" ]]; then if [[ "$ctx" == "" || "$namespace" == "" || "$label" == "" ]]; then
echo "Usage: klogs context namespace label" echo "Usage: klogs context namespace label"
@ -156,7 +154,7 @@ in
exit 1 exit 1
fi fi
kubectl --context "$ctx" logs -f -n "$namespace" -l "$label" $@ kubectl --context "$ctx" logs -f -n "$namespace" -l "$label"
''}"; ''}";
nixfix = lib.mkDefault "nix fmt ./**/*.nix"; nixfix = lib.mkDefault "nix fmt ./**/*.nix";

View File

@ -140,7 +140,7 @@ in
Program = "${pkgs.writeShellScript "keepass-sync" '' Program = "${pkgs.writeShellScript "keepass-sync" ''
${pkgs.coreutils}/bin/cp "${homedir}/storage/.macshare/.secret/arnie.kdbx" "${homedir}/.secret/arnie.kdbx" ${pkgs.coreutils}/bin/cp "${homedir}/storage/.macshare/.secret/arnie.kdbx" "${homedir}/.secret/arnie.kdbx"
''}"; ''}";
ProgramArguments = [ ]; ProgramArguments = [];
StartInterval = 60 * 10; StartInterval = 60 * 10;
StandardErrorPath = "/var/log/keepass-sync.error.log"; StandardErrorPath = "/var/log/keepass-sync.error.log";
StandardOutPath = "/var/log/keepass-sync.out.log"; StandardOutPath = "/var/log/keepass-sync.out.log";