Add user assert for syncthing

This commit is contained in:
Vili Sinervä 2024-07-28 22:06:23 +03:00
parent 913509bb58
commit 830bf7e78c
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -1,6 +1,13 @@
# Syncthing instance
{ config, pkgs, ... }:
{
assertions = [
{
assertion = config.users.users ? "vili";
message = "User 'vili' needed for syncthing!";
}
];
services.syncthing = {
enable = true;
user = "vili";