wifibackup: more tuning
This commit is contained in:
parent
2cf9ce38d1
commit
f6740477b5
@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
wifibackup = {
|
wifibackup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
toPath = "/home/motiejus/M-Active/wifi";
|
toPath = "/home/${config.mj.username}/M-Active/.wifi";
|
||||||
toUser = config.mj.username;
|
toUser = config.mj.username;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ in {
|
|||||||
|
|
||||||
wifibackup = {
|
wifibackup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
toPath = "/home/${config.mj.username}/M-Active/wifi";
|
toPath = "/home/${config.mj.username}/M-Active/.wifi";
|
||||||
toUser = config.mj.username;
|
toUser = config.mj.username;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,13 +33,14 @@
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "root";
|
User = "root";
|
||||||
SuccessExitStatus = [0 1];
|
SuccessExitStatus = [0 1];
|
||||||
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
sed -i -E '/^(uuid|interface-name)=/d' ${fromPath}/*.nmconnection
|
sed -i -E '/^(uuid|interface-name)=/d' ${fromPath}/*.nmconnection
|
||||||
|
|
||||||
exec ${pkgs.unison}/bin/unison \
|
exec ${pkgs.unison}/bin/unison \
|
||||||
-sshcmd ${pkgs.openssh}/bin/ssh \
|
-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 \
|
-batch \
|
||||||
-backuploc local \
|
-backuploc local \
|
||||||
-backup "Name *" \
|
-backup "Name *" \
|
||||||
|
Loading…
Reference in New Issue
Block a user