diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 1a0e794..2ed5b78 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -113,7 +113,7 @@ wifibackup = { enable = true; - toPath = "/home/motiejus/M-Active/wifi"; + toPath = "/home/${config.mj.username}/M-Active/.wifi"; toUser = config.mj.username; }; diff --git a/hosts/mtworx/configuration.nix b/hosts/mtworx/configuration.nix index 42ef018..0a1a59f 100644 --- a/hosts/mtworx/configuration.nix +++ b/hosts/mtworx/configuration.nix @@ -74,7 +74,7 @@ in { wifibackup = { enable = true; - toPath = "/home/${config.mj.username}/M-Active/wifi"; + toPath = "/home/${config.mj.username}/M-Active/.wifi"; toUser = config.mj.username; }; diff --git a/modules/services/wifibackup/default.nix b/modules/services/wifibackup/default.nix index d98ab41..67f8729 100644 --- a/modules/services/wifibackup/default.nix +++ b/modules/services/wifibackup/default.nix @@ -33,13 +33,14 @@ Type = "oneshot"; User = "root"; SuccessExitStatus = [0 1]; + RemainAfterExit = true; }; script = '' sed -i -E '/^(uuid|interface-name)=/d' ${fromPath}/*.nmconnection exec ${pkgs.unison}/bin/unison \ -sshcmd ${pkgs.openssh}/bin/ssh \ - -sshargs "-i /etc/ssh/ssh_host_ed25519_key -o KnownHostsCommand=\"${pkgs.coreutils}/bin/cat /etc/ssh/ssh_host_ed25519_key.pub\"" \ + -sshargs "-i /etc/ssh/ssh_host_ed25519_key -o KnownHostsCommand=${pkgs.coreutils}/bin/cat\ /etc/ssh/ssh_host_ed25519_key.pub" \ -batch \ -backuploc local \ -backup "Name *" \