retiolum: make hosts service persistant

This commit is contained in:
Jörg Thalheim 2020-11-01 09:34:34 +01:00
parent e90be25da2
commit eb8b4d06c8
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ in {
chown -R tinc.${netname} /etc/tinc/${netname}/hosts
chmod -R u+w /etc/tinc/${netname}/hosts
'';
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
};
# Some hosts require VPN for nixos-rebuild, so we don't want to restart it on update