mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 19:41:30 +00:00
21 lines
592 B
Nix
21 lines
592 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.selfprivacy-api = {
|
|
enable = true;
|
|
token = config.services.userdata.api.token;
|
|
enableSwagger = config.services.userdata.api.enableSwagger;
|
|
b2AccountId = config.services.userdata.backblaze.accountId;
|
|
b2AccountKey = config.services.userdata.backblaze.accountKey;
|
|
resticPassword = config.services.userdata.resticPassword;
|
|
};
|
|
|
|
users.users."selfprivacy-api" = {
|
|
isNormalUser = false;
|
|
isSystemUser = true;
|
|
extraGroups = [ "opendkim" ];
|
|
};
|
|
users.groups."selfprivacy-api" = {
|
|
members = [ "selfprivacy-api" ];
|
|
};
|
|
}
|