nixpkgs-suyu/nixos/modules/misc
Jörg Thalheim c9c8a2c5b3 nixos/memcached: make unix sockets usuable
before:
  - /var/run/memcached is a bad default for a socket path, since its
    parent directory must be writeable by memcached.
  - Socket directory was not created by the module itself -> this was
    left as a burden to the user?
  - Having a static uid with a dynamic user name is not very useful.

after:
  - Replace services.memcached.socket by a boolean flag. This simplifies
    our code, since we do not have to check if the user specifies a
    path with a parent directory that should be owned by memcached
    (/run/memcached/memcached.sock -> /run/memcached).
  - Remove fixed uid/gid allocation. The only file ever owned by the
    daemon is the socket that will be recreated on every start.
    Therefore user and group ids do not need to be static.
  - only create the memcached user, if the user has not specified a
    different one. The major use case for changing option is to allow
    existing services (such as php-fpm) opening the local unix socket.
    If we would unconditionally create a user that option would be
    useless.
2018-01-03 12:33:36 +01:00
..
assertions.nix
crashdump.nix nixos/crashdump: fix evaluation. (#30415) 2017-10-25 20:00:52 +00:00
extra-arguments.nix
ids.nix nixos/memcached: make unix sockets usuable 2018-01-03 12:33:36 +01:00
lib.nix
locate.nix nixos/locatedb: fix first run when /var/cache doesn't exist 2017-10-11 14:59:18 +02:00
meta.nix lib: introduce imap0, imap1 (#25543) 2017-07-04 23:29:23 +01:00
nixpkgs.nix
passthru.nix
version.nix Impala makes packaging a life-long addiction 2017-08-30 23:13:56 +02:00