From 7b88439615d1f8a7bea81768ae09e1c205b1c726 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 8 Nov 2021 20:35:06 +0100 Subject: gkleen@sif: ... --- accounts/gkleen@sif/default.nix | 2 +- accounts/gkleen@vidhar.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index c26d3c49..311b2129 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -210,7 +210,7 @@ in { log = "false"; repeat = "watch"; sshcmd = "${pkgs.openssh}/bin/ssh"; - sshargs = "-o BatchMode=yes -S none"; + sshargs = "-o BatchMode=yes -S none -o IdentityFile=~/.ssh/unison.gkleen@vidhar.yggdrasil"; ui = "text"; }; }; diff --git a/accounts/gkleen@vidhar.nix b/accounts/gkleen@vidhar.nix index bf75f694..dd19e41b 100644 --- a/accounts/gkleen@vidhar.nix +++ b/accounts/gkleen@vidhar.nix @@ -6,9 +6,9 @@ config = { users.users.${userName}.uid = 1000; home-manager.users.${userName} = { - home.packages = with pkgs; [ - unison - ]; + home.file.".ssh/authorized_keys".text = '' + command="${pkgs.unison}/bin/unison -server",no-port-forwarding,no-X11-forwarding,no-pty,no-agent-forwarding,no-user-rc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA4izEz5pEjJqFLeJewHCoqtskqA+olKZNEP1yZWK7Ui gkleen@sif + ''; }; }; } -- cgit v1.2.3