Add homebox

This commit is contained in:
muon 2025-01-13 12:35:13 +00:00
parent 40eb62a6bd
commit 411024cd3c
6 changed files with 52 additions and 8 deletions

View file

@ -9,6 +9,10 @@ in with lib; {
default = false;
description = "enables grav service";
};
location = mkOption {
default = "/srv/grav";
description = "location for homebox data";
};
};
};
@ -18,7 +22,7 @@ in with lib; {
services.grav = mkIf cfg.grav.enable {
inherit port;
enable = true;
root = "/curr/grav/grav";
root = cfg.grav.location;
phpPackage = pkgs.php81;
};
users.users.${config.mods.user.name}.extraGroups = lib.mkAfter [ "grav" ];