15 lines
230 B
Nix
15 lines
230 B
Nix
|
{ lib, config, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.snowhawk.playerctl;
|
||
|
in
|
||
|
{
|
||
|
options.snowhawk.playerctl = {
|
||
|
enable = lib.mkEnableOption "playerctl";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.playerctld.enable = true;
|
||
|
};
|
||
|
}
|