git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40806 from Mic92/nixos-ids

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

commit94b9ede5231f75b64b0469c6cd378486440ed32e authorYegor Timoshenko <yegortimoshenko@riseup.net> dateWed 23 May 2018, 12:24 (9 years ago) parentead36988c3503d
1 file changed+8
nixos/modules/misc/ids.nix+8
nixos/modules/misc/ids.nix+8
@@ -1,6 +1,14 @@
11# This module defines the global list of uids and gids. We keep a
22# central list to prevent id collisions.
33
4+# IMPORTANT!
5+# We only add static uids and gids for services where it is not feasible
6+# to change uids/gids on service start, in example a service with a lot of
7+# files. Please also check if the service is applicable for systemd's
8+# DynamicUser option and does not need a uid/gid allocation at all.
9+# Systemd can also change ownership of service directories using the
10+# RuntimeDirectory/StateDirectory options.
11+
412{ config, pkgs, lib, ... }:
513
614{