global/kitty,mpd: disable when not in graphical environment
This commit is contained in:
parent
eaabe3e315
commit
a5faa62d56
2 changed files with 37 additions and 32 deletions
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue