add distccd
This commit is contained in:
parent
af46de5628
commit
3ed2f2e1a8
7 changed files with 227 additions and 11 deletions
|
|
@ -83,16 +83,18 @@ in
|
|||
doEdits = config.unitDropins
|
||||
|> lib.mapAttrsToList (service: dropin: ''
|
||||
cat "${dropin}" | systemctl edit "${service}" --runtime --drop=dynix-${dropin.name} --stdin
|
||||
'');
|
||||
'')
|
||||
|> lib.concatStringsSep "\n";
|
||||
doReloads = config.unitDropins
|
||||
|> lib.mapAttrsToList (service: _: ''
|
||||
systemctl reload-or-restart "${service}"
|
||||
'');
|
||||
in [
|
||||
doEdits
|
||||
doReloads
|
||||
] |> lib.concatLists
|
||||
|> lib.concatStringsSep "\n";
|
||||
|> lib.mapAttrsToList (service: _: ''
|
||||
systemctl reload-or-restart "${service}"
|
||||
'')
|
||||
|> lib.concatStringsSep "\n";
|
||||
in ''
|
||||
${doEdits}
|
||||
|
||||
${doReloads}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue