mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-24 13:01:28 +00:00
e6e9d0677e
Just a copy from selfprivacy-nixos-config.
19 lines
420 B
Nix
19 lines
420 B
Nix
{ config, ... }:
|
|
{
|
|
services.selfprivacy-api = {
|
|
enable = true;
|
|
enableSwagger = config.selfprivacy.api.enableSwagger;
|
|
b2Bucket = config.selfprivacy.backup.bucket;
|
|
};
|
|
|
|
users.users."selfprivacy-api" = {
|
|
isNormalUser = false;
|
|
isSystemUser = true;
|
|
extraGroups = [ "opendkim" ];
|
|
group = "selfprivacy-api";
|
|
};
|
|
users.groups."selfprivacy-api" = {
|
|
members = [ "selfprivacy-api" ];
|
|
};
|
|
}
|