fixed permissions and added watch to otf
This commit is contained in:
parent
59afc00f4b
commit
5b9e1da49d
2 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ in
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
default = {
|
default = {
|
||||||
OTF_ADDRESS = "localhost:9000";
|
# OTF_ADDRESS = "localhost:9000";
|
||||||
# OTF_SITE_TOKEN = "my-token";
|
# OTF_SITE_TOKEN = "my-token";
|
||||||
# OTF_SSL = "false";
|
# OTF_SSL = "false";
|
||||||
# OTF_SECRET = "";
|
# OTF_SECRET = "";
|
||||||
|
|
@ -87,6 +87,7 @@ in
|
||||||
ExecStart = "${cfg.package}/bin/otfd";
|
ExecStart = "${cfg.package}/bin/otfd";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
||||||
|
WatchPaths = lib.mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
otfenv = {
|
otfenv = {
|
||||||
owner = "otf";
|
owner = "otf";
|
||||||
group = "otf";
|
group = "otf";
|
||||||
mode = "0440";
|
mode = "0550";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue