mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-08 17:43:11 +00:00
19 lines
438 B
Nix
19 lines
438 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.selfprivacy-api = {
|
|
enable = true;
|
|
enableSwagger = config.services.userdata.api.enableSwagger;
|
|
b2Bucket = config.services.userdata.backup.bucket;
|
|
};
|
|
|
|
users.users."selfprivacy-api" = {
|
|
isNormalUser = false;
|
|
isSystemUser = true;
|
|
extraGroups = [ "opendkim" ];
|
|
group = "selfprivacy-api";
|
|
};
|
|
users.groups."selfprivacy-api" = {
|
|
members = [ "selfprivacy-api" ];
|
|
};
|
|
}
|