diff options
author | Profpatsch <mail@profpatsch.de> | 2017-07-08 22:21:57 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2017-07-08 23:53:35 +0200 |
commit | e8e506de9b3b1cddd4f4cb9edb85f1e292a2b1e1 (patch) | |
tree | c8c9b332236f98caad3a7fb1343df808940e68ac /modules | |
parent | f278c9189adf24f0f611d00297710579da3fa730 (diff) |
machines/hannswurscht: serve speedtest output with nginx
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/openlab/speedtest.nix | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/user/openlab/speedtest.nix b/modules/user/openlab/speedtest.nix index c0b248b2..e8770410 100644 --- a/modules/user/openlab/speedtest.nix +++ b/modules/user/openlab/speedtest.nix @@ -14,6 +14,7 @@ let speedtest = pkgs.writeScript "speedtest" '' #!${bin pkgs.bash "bash"} + mkdir -p "$(dirname "${cfg.outputPath}")" ${bin pkgs.python3 "python3"} ${py} >> "${cfg.outputPath}" ''; @@ -37,12 +38,6 @@ in { after = [ "network.target" ]; script = "${speedtest}"; startAt = [ "*-*-* *:00/15:00" ]; - serviceConfig.User = "speedtest"; - }; - - users.users.speedtest = { - createHome = false; - home = "/var/lib/speedtest"; }; assertions = [ { |