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
base: 73415984208d
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: d8fa2627f307
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 10, 2020

  1. mpd: remove user/group from conf

    the options should not be set as we already change user with service
    file, man mpd.conf says "Do not use this option if you start MPD as an
    unprivileged user"
    
    The group option actually is not documented at all anymore and probably
    no longer exists.
    
    These options get in the way of setting up confinement for the service,
    as it would otherwise be pretty straightforward to setup, but even if
    mpd is not root it would check the user exists within the chroot which
    is more work (need to get nss working):
    
      systemd.services.mpd = {
        serviceConfig.BindPaths = [
          # mpd state dir
          "/var/lib/mpd"
          # notify systemd service started up
          "/run/systemd/notify"
        ];
        serviceConfig.BindReadOnlyPaths = [
          "/path/to/music:/var/lib/mpd/music"
        ];
        # ProtectSystem is not compatible with confinement
        serviceConfig.ProtectSystem = lib.mkForce false;
        confinement = {
          enable = true;
          binSh = null;
          mode = "chroot-only";
        };
      };
    martinetd authored and bjornfor committed May 10, 2020
    Copy the full SHA
    d8fa262 View commit details
    Browse the repository at this point in the history