nixpkgs/nixos/modules
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
..
config nixos/config/no-x-libs: Fix pinentry arguments 2019-07-24 15:22:07 -05:00
hardware Merge pull request #63894 from ambrop72/no-opengl-xdg-data-dirs 2019-07-11 13:16:08 -04:00
i18n/input-method
installer nixos netboot: explicitly specify initrd 2019-07-15 19:33:21 +03:00
misc nixos/zabbixWeb: replace httpd subservice with new module 2019-07-11 18:45:46 -04:00
profiles Renaming security.virtualization.flushL1DataCache to virtualisation 2019-07-19 15:49:37 +02:00
programs nixos/tsm-client: init module 2019-07-15 09:41:37 +02:00
security Renaming security.virtualization.flushL1DataCache to virtualisation 2019-07-19 15:49:37 +02:00
services syncthing: create default group if not overridden 2019-07-29 21:56:12 +03:00
system system-boot: configurationLimit should be null as default 2019-07-23 10:20:09 +02:00
tasks nixos/zfs: add trim service 2019-07-25 12:47:43 +01:00
testing
virtualisation Merge pull request #61981 from ambrop72/no-opengl-ld-library-path 2019-07-11 13:15:51 -04:00
module-list.nix nixos/thanos: add module for the thanos service 2019-07-28 13:28:27 +02:00
rename.nix Renaming security.virtualization.flushL1DataCache to virtualisation 2019-07-19 15:49:37 +02:00