aboutsummaryrefslogtreecommitdiffstats
path: root/modules/media/playerctl
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 11:15:12 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 11:15:12 +0530
commitf0459ec406f8abb304153557843af74e1b175352 (patch)
tree40fb7081d61e2e7f0b5af15baec6b8f4fc53fb32 /modules/media/playerctl
parente92a419085527e2d223462f26d1313b1f257177a (diff)
downloadhome-manager-config-f0459ec406f8abb304153557843af74e1b175352.tar.gz
home-manager-config-f0459ec406f8abb304153557843af74e1b175352.zip
refactor: using lib.mkOption for exposing used packages
Diffstat (limited to 'modules/media/playerctl')
-rw-r--r--modules/media/playerctl/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/media/playerctl/default.nix b/modules/media/playerctl/default.nix
index 3c15f11..bf71f06 100644
--- a/modules/media/playerctl/default.nix
+++ b/modules/media/playerctl/default.nix
@@ -8,7 +8,12 @@
{
options.media.playerctl = {
enable = lib.mkEnableOption "Enables playerctl.";
- package = lib.mkPackageOption pkgs "playerctl" { };
+ package = lib.mkOption {
+ type = lib.types.package;
+ readOnly = true;
+ default = pkgs.playerctl;
+ description = "The playerctl package to use.";
+ };
};
config = lib.mkIf config.media.playerctl.enable {