diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-05-21 16:57:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 16:57:54 +0200 |
commit | b34c560d192085362c49da59696c17eaca3b5d8c (patch) | |
tree | 1a23ac93e89bdd3d11f902e8b8825ed6860c98df /nixos/modules/services/video | |
parent | ff37de0c4a697f0750b0a7447c1ce82ba4b4d672 (diff) | |
parent | 00fe2c7e98b0cb71846566d6375f5baaefbaf80e (diff) |
Merge pull request #186582 from midchildan/fix/epgstation-var-empty
nixos/epgstation: fix startup issue
Diffstat (limited to 'nixos/modules/services/video')
-rw-r--r-- | nixos/modules/services/video/epgstation/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/video/epgstation/default.nix b/nixos/modules/services/video/epgstation/default.nix index 3d1d7a27c216..a395294ec142 100644 --- a/nixos/modules/services/video/epgstation/default.nix +++ b/nixos/modules/services/video/epgstation/default.nix @@ -264,6 +264,9 @@ in description = "EPGStation user"; group = config.users.groups.epgstation.name; isSystemUser = true; + + # NPM insists on creating ~/.npm + home = "/var/cache/epgstation"; }; users.groups.epgstation = { }; @@ -318,11 +321,14 @@ in ++ lib.optional config.services.mirakurun.enable "mirakurun.service" ++ lib.optional config.services.mysql.enable "mysql.service"; + environment.NODE_ENV = "production"; + serviceConfig = { ExecStart = "${cfg.package}/bin/epgstation start"; ExecStartPre = "+${preStartScript}"; User = username; Group = groupname; + CacheDirectory = "epgstation"; StateDirectory = "epgstation"; LogsDirectory = "epgstation"; ConfigurationDirectory = "epgstation"; |