mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
24 lines
472 B
Nix
24 lines
472 B
Nix
{ 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"; };
|
|
};
|
|
};
|
|
};
|
|
}
|