about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-05-23 12:24:59 +0300
committerGitHub <noreply@github.com>2018-05-23 12:24:59 +0300
commit94b9ede5231f75b64b0469c6cd378486440ed32e (patch)
tree11a1af15db68c88b029b6ead42b4e86c3df91352 /nixos
parentead3698a7ab41d9a8d22512e02fef16bb4558e10 (diff)
parent8c3503d6f6dd6972f4d8566a14532f0dcb446851 (diff)
Merge pull request #40806 from Mic92/nixos-ids
nixos/ids: information when to use static uids/gids
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/misc/ids.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix
index cc7d868498241..bb97c707bf65c 100644
--- a/nixos/modules/misc/ids.nix
+++ b/nixos/modules/misc/ids.nix
@@ -1,6 +1,14 @@
 # This module defines the global list of uids and gids.  We keep a
 # 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, ... }:
 
 {