grimm-nixos-laptop/common/sound/spotify.nix

25 lines
428 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.grimmShared;
in
{
config = with cfg; lib.mkIf (enable && spotify.enable) {
environment.systemPackages = [
pkgs.ncspot
] ++ lib.optional graphical pkgs.spotify;
grimmShared = {
sound = true;
network = true;
};
};
options.grimmShared.spotify = {
enable = lib.mkEnableOption "grimm-spotify";
};
imports = [
./spotifyd.nix
];
}