Converted playerctl to a home module
This commit is contained in:
parent
dae4076857
commit
9fb7bb1ae1
|
@ -31,6 +31,7 @@
|
|||
|
||||
services = {
|
||||
swaync.enable = true;
|
||||
playerctld.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
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;
|
||||
};
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.desktop.addons.playerctl;
|
||||
in {
|
||||
options.aa.desktop.addons.playerctl = with types; {
|
||||
enable = mkEnableOption "playerctl";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [playerctl];
|
||||
|
||||
aa.home.extraOptions = {
|
||||
services.playerctld.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -38,7 +38,6 @@ in {
|
|||
aa.desktop.addons = {
|
||||
alacritty.enable = true;
|
||||
gammastep.enable = true;
|
||||
playerctl.enable = true;
|
||||
swayidle.enable = true;
|
||||
|
||||
# TODO
|
||||
|
|
Loading…
Reference in a new issue