Modules: Fix typos
This commit is contained in:
@ -11,7 +11,7 @@ in {
|
|||||||
options.modules.git = import ./options.nix {inherit lib mylib;};
|
options.modules.git = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf git.enable {
|
config = lib.mkIf git.enable {
|
||||||
home.programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# userEmail = "christoph.urlacher@protonmail.com";
|
# userEmail = "christoph.urlacher@protonmail.com";
|
||||||
|
@ -11,7 +11,8 @@ in {
|
|||||||
options.modules.mpd = import ./options.nix {inherit lib mylib;};
|
options.modules.mpd = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf mpd.enable {
|
config = lib.mkIf mpd.enable {
|
||||||
services.mpd = {
|
services = {
|
||||||
|
mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "${config.home.homeDirectory}/Music/.mpd";
|
dataDir = "${config.home.homeDirectory}/Music/.mpd";
|
||||||
musicDirectory = "${config.home.homeDirectory}/Music";
|
musicDirectory = "${config.home.homeDirectory}/Music";
|
||||||
@ -38,7 +39,8 @@ in {
|
|||||||
type "pipewire"
|
type "pipewire"
|
||||||
name "PipeWire Sound Server"
|
name "PipeWire Sound Server"
|
||||||
|
|
||||||
# Use hardware mixer instead of software volume filter (replaygain_handler "software")
|
# Use hardware mixer instead of software volume filter
|
||||||
|
# Alternative: replaygain_handler "software"
|
||||||
# mixer_type "hardware"
|
# mixer_type "hardware"
|
||||||
# replay_gain_handler "mixer"
|
# replay_gain_handler "mixer"
|
||||||
}
|
}
|
||||||
@ -56,16 +58,34 @@ in {
|
|||||||
# size "1 GB"
|
# size "1 GB"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# follow_outside_symlinks "no" # If mpd should follow symlinks pointing outside the musicDirectory
|
# If mpd should follow symlinks pointing outside the musicDirectory
|
||||||
# follow_inside_symlinks "yes" # If mpd should follow symlinks pointing inside the musicDirectory
|
# follow_outside_symlinks "no"
|
||||||
|
|
||||||
|
# If mpd should follow symlinks pointing inside the musicDirectory
|
||||||
|
# follow_inside_symlinks "yes"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
# MPD integration with mpris (used by player-ctl).
|
# MPD integration with mpris (used by player-ctl).
|
||||||
# We want to use mpris as it also supports other players (e.g. Spotify) or browsers.
|
# We want to use mpris as it also supports other players (e.g. Spotify) or browsers.
|
||||||
services.mpd-mpris = {
|
mpd-mpris = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mpd.useLocal = true;
|
mpd.useLocal = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mpd-discord-rpc = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# NOTE: Bitch wants to create a default config file inside a
|
||||||
|
# read-only filesystem when changing settings here...
|
||||||
|
# settings = {
|
||||||
|
# hosts = "127.0.0.1:${builtins.toString config.services.mpd.network.port}";
|
||||||
|
# format = {
|
||||||
|
# details = "$title";
|
||||||
|
# state = "On $album by $artist";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user