1
0

Add user that is allowed to edit wetter database

This commit is contained in:
clerie 2022-02-28 15:36:40 +01:00
parent f8d69b1784
commit 2a462cb90a

View File

@ -24,6 +24,18 @@ in {
}; };
users.groups.wetter_web = {}; users.groups.wetter_web = {};
users.users.wetter_scraper = {
description = "Wetter Scraper";
group = "wetter_scraper";
home = "/var/lib/wetter/";
useDefaultShell = true;
isSystemUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC4kCYnm6mnPI3nPF5YmYCxeVqL4i02dSIJ9kngxu9rS dwd-scraper"
];
};
users.groups.wetter_scraper = {};
services.postgresql = { services.postgresql = {
ensureDatabases = [ "wetter" ]; ensureDatabases = [ "wetter" ];
ensureUsers = [ ensureUsers = [