Converted playerctl to a home module
This commit is contained in:
parent
dae4076857
commit
9fb7bb1ae1
4 changed files with 21 additions and 23 deletions
20
modules/home/services/playerctld/default.nix
Normal file
20
modules/home/services/playerctld/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.${namespace}.services.playerctld;
|
||||
in {
|
||||
options.${namespace}.services.playerctld = {
|
||||
enable = mkEnableOption "playerctl";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [pkgs.playerctl];
|
||||
services.playerctld.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue