mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add homebox
This commit is contained in:
parent
40eb62a6bd
commit
411024cd3c
6 changed files with 52 additions and 8 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue