nix-stuff/modules/agola.nix

20 lines
321 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
agola = pkgs.agola;
cfg = config.services.agola;
in
{
options.services.agola = {
enable = mkEnableOption "Enable agola server.";
};
config = lib.mkIf cfg.enable {
systemd.services.agola = {
script = ''
${agola}/bin/agola
'';
};
};
}