types.secret-file: add service option
This commit is contained in:
parent
45db34b85f
commit
c58835f0e3
|
@ -9,8 +9,12 @@
|
|||
};
|
||||
|
||||
systemd.services.nix-serve = {
|
||||
requires = ["secret.service"];
|
||||
after = ["secret.service"];
|
||||
after = [
|
||||
config.krebs.secret.files.nix-serve-key.service
|
||||
];
|
||||
requires = [
|
||||
config.krebs.secret.files.nix-serve-key.service
|
||||
];
|
||||
};
|
||||
krebs.secret.files.nix-serve-key = {
|
||||
path = "/run/secret/nix-serve.key";
|
||||
|
|
|
@ -71,8 +71,12 @@ in
|
|||
};
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.netdata = {
|
||||
requires = [ "secret.service" ];
|
||||
after = [ "secret.service" ];
|
||||
after = [
|
||||
config.krebs.secret.files.netdata-stream.service
|
||||
];
|
||||
requires = [
|
||||
config.krebs.secret.files.netdata-stream.service
|
||||
];
|
||||
};
|
||||
krebs.secret.files.netdata-stream = {
|
||||
path = "/run/secret/netdata-stream.conf";
|
||||
|
|
Loading…
Reference in a new issue