This commit is contained in:
muon 2024-12-16 15:47:21 +00:00
parent 614caf7d6f
commit 15a3ca5e14
6 changed files with 410 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
let cfg = config.mods.server;
in with lib; {
imports = [ ./service.nix ];
options.mods.server = {
grav = {
enable = mkEnableOption {
default = false;
description = "enables grav service";
};
};
};
config = {
services.grav = mkIf cfg.grav.enable {
enable = true;
systemSettings = {
log = { handler = "syslog"; };
pages = { theme = "agency"; };
};
};
};
}