From ea7f4a2577c4f18f301d10af9bc0805ee57bbcef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 25 Feb 2023 17:23:21 +0200 Subject: [PATCH] cosmetics --- configuration.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 05fb0de..725fbaa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,7 +14,7 @@ let mountLatest = ({mountpoint, zfs_name}: '' set -euo pipefail - ${pkgs.util-linux}/bin/umount ${mountpoint}/.snapshot-latest || : &>/dev/null + ${pkgs.util-linux}/bin/umount ${mountpoint}/.snapshot-latest &>/dev/null || : mkdir -p ${mountpoint}/.snapshot-latest ${pkgs.util-linux}/bin/mount -t zfs $(${pkgs.zfs}/bin/zfs list -H -t snapshot -o name ${zfs_name} | sort | tail -1) ${mountpoint}/.snapshot-latest '' @@ -132,11 +132,9 @@ in { "zh2769.rsync.net" = { publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJtclizeBy1Uo3D86HpgD3LONGVH0CJ0NT+YfZlldAJd"; }; - "github.com" = { publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"; }; - "git.sr.ht" = { publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60"; }; @@ -414,7 +412,7 @@ in { for e in "''${@:2}"; do EXTRA+="$e"$'\n' done - UNITSTATUS=$(${pkgs.systemd}/bin/systemctl status $UNIT) + UNITSTATUS=$(${pkgs.systemd}/bin/systemctl status "$UNIT") ${pkgs.postfix}/bin/sendmail $MAILTO <