| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
|
|
| |
Using `replace-literal` to insert secrets leaks the secrets through
the `replace-literal` process' `/proc/<pid>/cmdline`
file. `replace-secret` solves this by reading the secret straight from
the file instead.
|
|\
| |
| | |
nixos/mpd: allow autostart when listening for unix socket
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This allows to use files containing only the mpd password without the
permissions, making it easier for other programs connecting to mpd to read the
password from the same password file.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Allow to specify a password file to be located outside the store, and be
read in `ExecStartPre`.
|
| |
| |
| |
| |
| | |
fluidsynth is compiled in but soundfont-fluid needs to be explicitely
pulled in and path configured, an option makes it much simpler to use
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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";
};
};
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Refactor mpd
* mpd: 0.20.13 -> 0.21.5
Switch to meson based build, following upstream.
* Fix mpd on darwin
* mpd: 0.21.5 -> 0.21.6
* mpd-small: init add 0.21.6
* Update to 0.21.8 & fix ouput path
Also use pname instead of name.
* Update to 0.21.9
* Integrate review suggestions
- Expose run function as mpdWithFeatures.
- Throw on invalid feature requests.
- Drop major/minor version variables.
- Cosmetic improvements.
* Update to 0.21.10
* mpd: 0.21.10 -> 0.21.11
* mpd: 0.21.11 -> 0.21.12
* mpd: log to journal
* mpd: 0.21.12 -> 0.21.14
* mpd: add tobim to maintainers
* mpd: reenable syslog support
* mpd: 0.21.14 -> 0.21.15
* mpd: 0.21.15 -> 0.21.16
|
|
|
|
| |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
|
|
| |
see https://github.com/NixOS/nixpkgs/issues/53852
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This change allows users to specify an alternative database method. For
example an mpd satellite setup where another mpd on the network shares
it's database with the local instance. The `dbFile` parameter must not be
configured in that case.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
More descriptive option name.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The group is specified using a singleton list, so the loaOf merging is
done by iterating through the list items with imap, so it enumerates
every element and sets that as the default "name" attribute.
From lib/types:143:
name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}";
So, people get groups like "unnamed-X.Y" instead of "mpd".
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: devhell <"^"@regexmail.net>
Tested-by: devhell <"^"@regexmail.net>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
For some reason, mpd fails to open the sound card if using mpd's user
option. Starting mpd directly as the mpd user works for me.
|
| |
|
|
|
|
| |
Closes #4084
|
|
|
|
|
|
|
|
|
|
|
|
| |
music_directory "${cfg.musicDirectory}"
playlist_directory "${cfg.dataDir}/playlists"
db_file "${cfg.dataDir}/tag_cache"
state_file "${cfg.dataDir}/state"
sticker_file "${cfg.dataDir}/sticker.sql"
all refer to ${cfg.datadir}, which by default is "/var/lib/mpd/".
Parsing for instance ${cfg.datadir}/playlists results in:
/var/lib/mpd//playlists - NOT FOUND.
|
|
|
|
|
|
|
|
| |
Using pkgs.lib on the spine of module evaluation is problematic
because the pkgs argument depends on the result of module
evaluation. To prevent an infinite recursion, pkgs and some of the
modules are evaluated twice, which is inefficient. Using ‘with lib’
prevents this problem.
|
|
|