NixOS

August 06, 2015

Services

Thumbor

thumbor.nix:

{ pkgs, ... }:
{

  users.extraUsers.thumbor.isNormalUser = true;
  systemd.services.thumbor = {
    description = "thumbor";
    after = [ "network.target" ];
    wantedBy = [ "multi-user.target" ];
    serviceConfig = {
      WorkingDirectory = "/home/thumbor";
      ExecStart = "${pkgs.python27Packages.thumbor}/bin/thumbor -p 3000";
      Restart = "always";
      User = "thumbor";
    };
  };

}