Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ead3698a7ab4
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 94b9ede5231f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 20, 2018

  1. Copy the full SHA
    8c3503d View commit details

Commits on May 23, 2018

  1. Merge pull request #40806 from Mic92/nixos-ids

    nixos/ids: information when to use static uids/gids
    lukateras authored May 23, 2018
    Copy the full SHA
    94b9ede View commit details
Showing with 8 additions and 0 deletions.
  1. +8 −0 nixos/modules/misc/ids.nix
8 changes: 8 additions & 0 deletions nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
@@ -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, ... }:

{