summary refs log tree commit diff
diff options
context:
space:
mode:
authormidchildan <git@midchildan.org>2022-08-14 16:03:51 +0900
committermidchildan <git@midchildan.org>2022-08-14 16:03:51 +0900
commitdf1243d8569ae15410e44e87505a03d98c0b1954 (patch)
treec3d4e90b3e9a79c7326a29ff1e2f25b5234e18ce
parent9341cd89e90b0d8c98f803ee5ce132e043454ce0 (diff)
downloadnixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar.gz
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar.bz2
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar.lz
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar.xz
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.tar.zst
nixpkgs-df1243d8569ae15410e44e87505a03d98c0b1954.zip
nixos/epgstation: fix startup issue
-rw-r--r--nixos/modules/services/video/epgstation/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/video/epgstation/default.nix b/nixos/modules/services/video/epgstation/default.nix
index 51f71389263..ef502de8ea2 100644
--- a/nixos/modules/services/video/epgstation/default.nix
+++ b/nixos/modules/services/video/epgstation/default.nix
@@ -266,6 +266,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 = { };
@@ -325,6 +328,7 @@ in
         ExecStartPre = "+${preStartScript}";
         User = username;
         Group = groupname;
+        CacheDirectory = "epgstation";
         StateDirectory = "epgstation";
         LogsDirectory = "epgstation";
         ConfigurationDirectory = "epgstation";