nixos/ids: information when to use static uids/gids

This commit is contained in:
Jörg Thalheim 2018-05-20 10:52:03 +01:00
parent 3d7ab2f523
commit 8c3503d6f6

View File

@ -1,6 +1,14 @@
# This module defines the global list of uids and gids. We keep a # This module defines the global list of uids and gids. We keep a
# central list to prevent id collisions. # central list to prevent id collisions.
# IMPORTANT!
# We only add static uids and gids for services where it is not feasible
# to change uids/gids on service start, in example a service with a lot of
# files. Please also check if the service is applicable for systemd's
# DynamicUser option and does not need a uid/gid allocation at all.
# Systemd can also change ownership of service directories using the
# RuntimeDirectory/StateDirectory options.
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {