Commit 5274bb34 authored by Samuel Laurén's avatar Samuel Laurén
Browse files

Run as a system service

parent c341bb39
......@@ -33,11 +33,13 @@ in {
# Are these options in any way sensible
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.ffmpeg pkgs.dejavu_fonts ];
systemd.user.services.coffeecam = {
systemd.services.coffeecam = {
description = "CoffeeCam transmission";
wantedBy = [ "default.target" ];
after = [ "network.target" ];
serviceConfig = {
User = "coffeecam";
Group = "users";
ExecStart = lib.replaceStrings ["\n"] [" "] ''
${pkgs.ffmpeg}/bin/ffmpeg
-y
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment