Move grav

This commit is contained in:
muon 2025-01-02 15:13:55 +00:00
parent aaa78b5079
commit 7074efe217
2 changed files with 22 additions and 2 deletions

View file

@ -12,10 +12,13 @@ in with lib; {
};
};
config = {
networking.firewall = { allowedTCPPorts = [ 443 80 ]; };
config = let port = 5001;
in {
networking.firewall = { allowedTCPPorts = [ port ]; };
services.grav = mkIf cfg.grav.enable {
inherit port;
enable = true;
root = "/curr/grav/grav";
phpPackage = pkgs.php81;
};
users.users.${config.mods.user.name}.extraGroups = lib.mkAfter [ "grav" ];