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,19 +1,22 @@
{ pkgs, ... }: { { main, pkgs, lib, ... }:
programs.kitty = { {
enable = true; config = lib.mkIf main.info.graphical {
font = { programs.kitty = {
package = (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; }); enable = true;
name = "DejaVuSansMono"; font = {
size = 12; package = (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; });
name = "DejaVuSansMono";
size = 12;
};
settings = {
confirm_os_window_close = 0;
scrollback_lines = 100000;
};
}; };
settings = {
confirm_os_window_close = 0;
scrollback_lines = 100000;
};
};
home.shellAliases = { home.shellAliases = {
ssh = "kitty +kitten ssh"; ssh = "kitty +kitten ssh";
icat = "kitty +kitten icat"; icat = "kitty +kitten icat";
};
}; };
} }

View file

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