updater: move to it's own service

This commit is contained in:
2023-07-28 14:20:50 +03:00
parent e9c8320f72
commit bddb20cd13
4 changed files with 46 additions and 25 deletions

View File

@@ -63,6 +63,11 @@
};
services = {
updaterbot = {
enable = true;
uidgid = myData.uidgid.updaterbot;
};
postfix = {
enable = true;
saslPasswdPath = config.age.secrets.sasl-passwd.path;
@@ -88,27 +93,6 @@
};
};
users = {
users = {
# TODO: git config --global user.email bot@jakstys.lt
updaterbot = {
description = "Dear Updater Bot";
home = "/var/lib/updaterbot";
useDefaultShell = true;
group = "updaterbot";
isSystemUser = true;
createHome = true;
uid = myData.uidgid.updaterbot;
};
};
groups = {
updaterbot.gid = myData.uidgid.updaterbot;
};
};
nix.settings.trusted-users = ["updaterbot"];
services = {
tailscale.enable = true;