global/kitty,mpd: disable when not in graphical environment

This commit is contained in:
Infinidoge 2024-01-22 18:01:46 -05:00
parent eaabe3e315
commit a5faa62d56
No known key found for this signature in database
2 changed files with 37 additions and 32 deletions

View file

@ -1,22 +1,24 @@
{ config, lib, pkgs, ... }:
{ main, config, lib, pkgs, ... }:
{
services = {
mpd = {
enable = true;
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
config = lib.mkIf main.info.graphical {
services = {
mpd = {
enable = true;
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
};
mpd-mpris.enable = true;
mpris-proxy.enable = true;
playerctld.enable = true;
};
mpd-mpris.enable = true;
mpris-proxy.enable = true;
playerctld.enable = true;
};
home.packages = with pkgs; [
playerctl
];
home.packages = with pkgs; [
playerctl
];
};
}