25 lines
428 B
Nix
25 lines
428 B
Nix
{ 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
|
|
];
|
|
}
|