diff options
author | Karel Kočí <cynerd@email.cz> | 2023-09-13 09:54:28 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-09-13 09:54:28 +0200 |
commit | 8553b18626590e45dbb3a51210e919917632854a (patch) | |
tree | c6f30b194d8d943e08634c2f56ab2516ca134e09 | |
parent | 87249a5408b608da7c83144ccb4abf7e06c5ba3a (diff) | |
download | nixos-personal-8553b18626590e45dbb3a51210e919917632854a.tar.gz nixos-personal-8553b18626590e45dbb3a51210e919917632854a.tar.bz2 nixos-personal-8553b18626590e45dbb3a51210e919917632854a.zip |
nixos: allow deploy to lipwig with cynerd.cz and format fix
-rw-r--r-- | nixos/modules/desktop.nix | 2 | ||||
-rw-r--r-- | tools/common.sh | 3 |
2 files changed, 4 insertions, 1 deletions
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" } |