2022-06-23 02:57:41 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
2022-10-13 22:13:43 -04:00
|
|
|
unstable = import inputs.nixpkgs-unstable {
|
|
|
|
config = { allowUnfree = true; };
|
|
|
|
system = pkgs.system;
|
|
|
|
};
|
2022-06-23 02:57:41 -04:00
|
|
|
irisDesktopItem = pkgs.makeDesktopItem {
|
|
|
|
name = "iris";
|
|
|
|
desktopName = "Iris";
|
2022-10-13 22:13:43 -04:00
|
|
|
exec = ''
|
|
|
|
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=http://localhost:6680/iris/"'';
|
2022-06-23 02:57:41 -04:00
|
|
|
terminal = false;
|
|
|
|
};
|
2022-10-13 22:13:43 -04:00
|
|
|
in {
|
2022-06-23 02:57:41 -04:00
|
|
|
config = lib.mkIf config.nathan.programs.media.enable {
|
|
|
|
# General Packages
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
unstable.spotify
|
|
|
|
unstable.vlc
|
|
|
|
unstable.plex-media-player
|
|
|
|
unstable.obs-studio
|
|
|
|
nicotine-plus
|
|
|
|
irisDesktopItem
|
|
|
|
picard
|
2022-09-25 12:41:54 -04:00
|
|
|
mpc-cli
|
2022-11-05 00:53:20 -04:00
|
|
|
calibre
|
2022-06-23 02:57:41 -04:00
|
|
|
];
|
|
|
|
# Mopidy service
|
|
|
|
# TODO: Add scrobbling
|
|
|
|
services.mopidy = {
|
|
|
|
enable = true;
|
|
|
|
extensionPackages = with pkgs; [
|
|
|
|
mopidy-mpd
|
|
|
|
mopidy-iris
|
|
|
|
mopidy-scrobbler
|
|
|
|
mopidy-local
|
|
|
|
];
|
|
|
|
# extraConfigFiles = config.nathan.programs.media.mopidyExtraConfig;
|
|
|
|
settings = {
|
2022-10-13 22:13:43 -04:00
|
|
|
file = { media_dirs = [ "~/Music" ]; };
|
2022-06-23 02:57:41 -04:00
|
|
|
local = {
|
|
|
|
enabled = true;
|
|
|
|
media_dir = "~/Music";
|
|
|
|
};
|
2022-10-13 22:13:43 -04:00
|
|
|
mpd = { enabled = true; };
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|