From 8553b18626590e45dbb3a51210e919917632854a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Sep 2023 09:54:28 +0200 Subject: nixos: allow deploy to lipwig with cynerd.cz and format fix --- nixos/modules/desktop.nix | 2 +- tools/common.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix index d5e8b80..934eaf9 100644 --- a/nixos/modules/desktop.nix +++ b/nixos/modules/desktop.nix @@ -258,7 +258,7 @@ in { services.snapper.configs = { home = { SUBVOLUME = "/home"; - ALLOW_GROUPS = [ "users" ]; + ALLOW_GROUPS = ["users"]; TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; }; diff --git a/tools/common.sh b/tools/common.sh index dddb196..a563171 100644 --- a/tools/common.sh +++ b/tools/common.sh @@ -43,6 +43,9 @@ sshdest() { # Reverse opeartion for sshdest sshhost() { + if [ "$1" = "cynerd.cz" ]; then + echo "lipwig" + fi awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1" } -- cgit v1.2.3