feat(pages): clean the module

This commit is contained in:
Luj 2024-10-13 12:32:43 +02:00
parent 5a822dee2a
commit 82ab72f102
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 326 additions and 581 deletions

View file

@ -28,6 +28,11 @@ in
for supported values.
'';
};
settingsFile = mkOption {
type = types.nullOr types.path;
default = null;
};
};
};
@ -40,6 +45,7 @@ in
environment = cfg.settings;
serviceConfig = {
Type = "simple";
EnvironmentFile = cfg.settingsFile;
StateDirectory = "codeberg-pages";
WorkingDirectory = "/var/lib/codeberg-pages";
DynamicUser = true;