mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 05:15:38 +00:00
try binding to wait for identity service to complete
and see if remainafterexit fixes one of the issues
This commit is contained in:
parent
1b7e4687e4
commit
0618fc3962
@ -4,7 +4,10 @@
|
||||
systemd.services.wait-for-identity = {
|
||||
description = "Wait until identity file exists on the machine";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
for i in $(seq 1 10); do
|
||||
if [ -f ${config.identityFile} ]; then
|
||||
|
@ -68,7 +68,8 @@
|
||||
|
||||
description = "Decrypt secret for ${name}";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "wait-for-identity.service" ];
|
||||
bindsTo = [ "wait-for-identity.service" ];
|
||||
after = [ "wait-for-identity.service" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = ''
|
||||
echo "${attrs.prefix}$(
|
||||
|
Loading…
Reference in New Issue
Block a user