diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-04-26 01:56:25 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-04-26 01:56:25 -0400 |
| commit | 5ab67052741984a5002a21bd11a7b55be9421189 (patch) | |
| tree | 8f0fe601b1346aac54d2353dd6297fcd3999db63 /audio.nix | |
| parent | fmt (diff) | |
| download | nixos-5ab67052741984a5002a21bd11a7b55be9421189.tar.gz nixos-5ab67052741984a5002a21bd11a7b55be9421189.tar.bz2 nixos-5ab67052741984a5002a21bd11a7b55be9421189.zip | |
mpd and rmpc
Diffstat (limited to 'audio.nix')
| -rw-r--r-- | audio.nix | 36 |
1 files changed, 23 insertions, 13 deletions
@@ -15,18 +15,28 @@ }; }; - # services.mpd = { - # enable = true; - # musicDirectory = "${config.home.homeDirectory}/Music"; - # playlistDirectory = "${config.home.homeDirectory}/.playlists"; - # # mixer_type "none" # maybe mess around with this some time, it will turn off volume in rmpc, but apparently it will make the sound more quality for music - # extraConfig = '' - # auto_update "yes" - # audio_output { - # type "pulse" - # name "PipeWire Output" - # } - # ''; - # }; + hjem.users.andrew = { + files = { + ".config/mpd/mpd.conf".text = builtins.readFile ./dotfiles/mpd/mpd.conf; + + ".config/rmpc/config.ron".text = builtins.readFile ./dotfiles/rmpc/config.ron; + ".config/rmpc/themes/theme.ron".text = builtins.readFile ./dotfiles/rmpc/themes/theme.ron; + + }; + packages = with pkgs; [ + mpc + rmpc + ]; + }; + + +systemd.user.services.mpd = { + description = "Music Player Daemon"; + wantedBy = [ "default.target" ]; + serviceConfig = { + ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon /home/andrew/.config/mpd/mpd.conf"; + Restart = "on-failure"; + }; +}; } |
