Add user that is allowed to edit wetter database
This commit is contained in:
parent
f8d69b1784
commit
2a462cb90a
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user