wifibackup: more tuning
This commit is contained in:
parent
2cf9ce38d1
commit
f6740477b5
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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 *" \
|
||||
|
Loading…
Reference in New Issue
Block a user