Merge pull request #186582 from midchildan/fix/epgstation-var-empty
nixos/epgstation: fix startup issue
This commit is contained in:
@@ -264,6 +264,9 @@ in
|
|||||||
description = "EPGStation user";
|
description = "EPGStation user";
|
||||||
group = config.users.groups.epgstation.name;
|
group = config.users.groups.epgstation.name;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
|
||||||
|
# NPM insists on creating ~/.npm
|
||||||
|
home = "/var/cache/epgstation";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.epgstation = { };
|
users.groups.epgstation = { };
|
||||||
@@ -318,11 +321,14 @@ in
|
|||||||
++ lib.optional config.services.mirakurun.enable "mirakurun.service"
|
++ lib.optional config.services.mirakurun.enable "mirakurun.service"
|
||||||
++ lib.optional config.services.mysql.enable "mysql.service";
|
++ lib.optional config.services.mysql.enable "mysql.service";
|
||||||
|
|
||||||
|
environment.NODE_ENV = "production";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.package}/bin/epgstation start";
|
ExecStart = "${cfg.package}/bin/epgstation start";
|
||||||
ExecStartPre = "+${preStartScript}";
|
ExecStartPre = "+${preStartScript}";
|
||||||
User = username;
|
User = username;
|
||||||
Group = groupname;
|
Group = groupname;
|
||||||
|
CacheDirectory = "epgstation";
|
||||||
StateDirectory = "epgstation";
|
StateDirectory = "epgstation";
|
||||||
LogsDirectory = "epgstation";
|
LogsDirectory = "epgstation";
|
||||||
ConfigurationDirectory = "epgstation";
|
ConfigurationDirectory = "epgstation";
|
||||||
|
|||||||
Reference in New Issue
Block a user