diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-05-23 12:24:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 12:24:59 +0300 |
commit | 94b9ede5231f75b64b0469c6cd378486440ed32e (patch) | |
tree | 11a1af15db68c88b029b6ead42b4e86c3df91352 /nixos/modules | |
parent | ead3698a7ab41d9a8d22512e02fef16bb4558e10 (diff) | |
parent | 8c3503d6f6dd6972f4d8566a14532f0dcb446851 (diff) | |
download | nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar.gz nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar.bz2 nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar.lz nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar.xz nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.tar.zst nixlib-94b9ede5231f75b64b0469c6cd378486440ed32e.zip |
Merge pull request #40806 from Mic92/nixos-ids
nixos/ids: information when to use static uids/gids
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/misc/ids.nix | 8 |
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, ... }: { |