BreadDcbot; fixed infinite recursion and made secrete available to user
This commit is contained in:
parent
e6197316cc
commit
6b97209703
2 changed files with 10 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
+ (
|
||||
if !cfg
|
||||
then ""
|
||||
else config.systemd.services.bread-dcbot.serviceConfig.StateDirectory
|
||||
else userGroup
|
||||
)
|
||||
+ "/";
|
||||
programDir = mainDir + "program";
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
path = builtins.concatStringsSep ":" (map (x: "${x}/bin/") [pkgs.coreutils pkgs.typst pkgs.deno]);
|
||||
in {
|
||||
config = lib.mkIf config.niksos.server {
|
||||
systemd.services.bread-dcbot = {
|
||||
systemd.services.${userGroup} = {
|
||||
enable = true;
|
||||
after = ["network.target"];
|
||||
wantedBy = ["default.target"];
|
||||
description = "Breadener bot or smt.";
|
||||
description = userGroup;
|
||||
|
||||
environment = {
|
||||
"DENO_DIR" = denoDir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue