nix-stuff/modules/agola.nix

21 lines
321 B
Nix
Raw Normal View History

2021-09-01 20:58:58 +00:00
{ 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
'';
};
};
}