Add user assert for syncthing
This commit is contained in:
parent
913509bb58
commit
830bf7e78c
1 changed files with 7 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue