Try removing some of the restrictions
This commit is contained in:
parent
c5f2a7cdde
commit
917f2e5a93
25
module.nix
25
module.nix
@ -62,25 +62,24 @@ in {
|
|||||||
environment = {
|
environment = {
|
||||||
PRICEBOT_EXCHANGE_HOST = cfg.exchange-host;
|
PRICEBOT_EXCHANGE_HOST = cfg.exchange-host;
|
||||||
PRICEBOT_BEBOT_URL = cfg.mattermost-url;
|
PRICEBOT_BEBOT_URL = cfg.mattermost-url;
|
||||||
# PRICEBOT_BEBOT_AUTH_TOKEN_FILE = "%d/auth.token";
|
PRICEBOT_BEBOT_AUTH_TOKEN_FILE = "%d/auth.token";
|
||||||
PRICEBOT_BEBOT_CHANNEL_ID = opts.mattermost-channel-id;
|
PRICEBOT_BEBOT_CHANNEL_ID = opts.mattermost-channel-id;
|
||||||
PRICEBOT_TARGET_CURRENCY = opts.currency;
|
PRICEBOT_TARGET_CURRENCY = opts.currency;
|
||||||
PRICEBOT_NOTIFY_USER = opts.notify-user;
|
PRICEBOT_NOTIFY_USER = opts.notify-user;
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart =
|
ExecStart = "${pricebot}/bin/pricebot";
|
||||||
"${pricebot}/bin/pricebot \${CREDENTIALS_DIRECTORY}/auth.token";
|
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
PrivateTmp = true;
|
# PrivateTmp = true;
|
||||||
PrivateDevices = true;
|
# PrivateDevices = true;
|
||||||
ProtectSystem = "strict";
|
# ProtectSystem = "strict";
|
||||||
ProtectControlGroups = true;
|
# ProtectControlGroups = true;
|
||||||
ProtectKernelTunables = true;
|
# ProtectKernelTunables = true;
|
||||||
ProtectKernelModules = true;
|
# ProtectKernelModules = true;
|
||||||
ProtectHostname = true;
|
# ProtectHostname = true;
|
||||||
ProtectHome = true;
|
# ProtectHome = true;
|
||||||
ProtectClock = true;
|
# ProtectClock = true;
|
||||||
ProtectKernelLogs = true;
|
# ProtectKernelLogs = true;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
StandardOutput = "journal";
|
StandardOutput = "journal";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user