summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-05-20 10:52:03 +0100
committerJörg Thalheim <joerg@thalheim.io>2018-05-20 10:56:55 +0100
commit8c3503d6f6dd6972f4d8566a14532f0dcb446851 (patch)
treec0192dc195a90bb3ed0e0c46fc7b7719f5f954ea /nixos/modules/misc
parent3d7ab2f5235374450582d495def09ed15199e098 (diff)
downloadnixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar.gz
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar.bz2
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar.lz
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar.xz
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.tar.zst
nixlib-8c3503d6f6dd6972f4d8566a14532f0dcb446851.zip
nixos/ids: information when to use static uids/gids
Diffstat (limited to 'nixos/modules/misc')
-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 cc7d86849824..bb97c707bf65 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, ... }:
 
 {