nixpkgs/nixos/modules/services
Alexey Shmalko e50539f7b5
syncthing: create default group if not overridden
The following configuration generates a systemd unit that doesn't
start.
```nix
{
  services.syncthing = {
    enable = true;
    user = "my-user";
  };
}
```

It fails with
```
systemd[1]: Started Syncthing service.
systemd[6745]: syncthing.service: Failed to determine group credentials: No such process
systemd[6745]: syncthing.service: Failed at step GROUP spawning /nix/store/n1ydz3i08nqp1ajc50ycy1zribmphqc9-syncthing-1.1.4-bin/bin/syncthing: No such process
systemd[1]: syncthing.service: Main process exited, code=exited, status=216/GROUP
systemd[1]: syncthing.service: Failed with result 'exit-code'.
```

This is due to the fact that `syncthing` group (default) is not
created if the user is overridden.

Add a separate check for setting up the default group, so that
user/group are created independently.
2019-07-29 21:56:12 +03:00
..
admin cleanup redundant text in modules utilizing mkEnableOption 2019-04-20 14:44:02 +02:00
amqp nixos/rabbitmq: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:57 -04:00
audio nixos/spotifyd: init 2019-07-21 00:58:20 +02:00
backup nixos/backup/tsm: init module 2019-07-15 09:41:37 +02:00
cluster treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
computing nixos/boinc: replace deprecated usage of PermissionsStartOnly 2019-05-26 07:20:56 -04:00
continuous-integration treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
databases postgresql: update docs 2019-07-23 14:17:14 +03:00
desktops nixos/doc: fix build 2019-07-18 20:40:24 -04:00
development nixos/jupyter: wait for network.target 2018-11-06 20:40:20 +01:00
editors manual: mention jmacs as emacs imitation 2019-07-13 11:01:17 +02:00
games Merge pull request #60406 from JohnAZoidberg/remove-isnull 2019-05-18 09:36:24 +00:00
hardware treewide: use dontConfigure 2019-07-01 04:23:51 -04:00
logging Merge pull request #64463 from Ma27/graylog-test 2019-07-21 20:53:39 +00:00
mail nixos: add 'localRecipients' config option for Postfix 2019-07-15 17:36:20 +02:00
misc nixos/taskserver: crl file is optional 2019-07-27 15:49:46 -07:00
monitoring thanos: 0.5.0 -> 0.6.0 2019-07-28 13:28:27 +02:00
network-filesystems nixos/doc: Fix spurious indentation 2019-06-17 12:28:26 +02:00
networking syncthing: create default group if not overridden 2019-07-29 21:56:12 +03:00
printing Merge pull request #59076 from Yarny0/cups-path-fix 2019-05-30 10:52:28 -04:00
scheduling Merge pull request #51918 from bobvanderlinden/var-run 2019-04-07 20:09:46 +02:00
search treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
security sshguard: do not create ipset in post-start 2019-07-27 10:59:50 +05:30
system nixos/nscd: document why it is configured this way 2019-07-12 12:07:45 -07:00
torrent nixos/deluge: Add extractor dependencies. 2019-07-02 22:26:38 +01:00
ttys nixos: add preferLocalBuild=true; on derivations for config files 2019-02-22 20:11:27 +01:00
web-apps nixos/nextcloud: fix inclusion of trusted_domains in override config 2019-07-23 13:29:43 +02:00
web-servers nixos/httpd: drop postgresql reference 2019-07-20 18:36:24 -04:00
x11 Merge pull request #65335 from Baughn/wifi-crda 2019-07-29 07:02:22 +01:00