remove programs from non graphical envs

This commit is contained in:
Thilo Billerbeck 2024-02-01 15:21:49 +01:00
parent f8f8d4ca2b
commit 5c9e9661f8
4 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,7 @@
{
programs.alacritty = {
enable = true;
enable = if config.machine.isGraphical then true else false;
settings = {
window = {
decorations = "full";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
chromium_extension = [
@ -22,7 +22,7 @@ let
in
{
programs.vivaldi = {
enable = true;
enable = if config.machine.isGraphical then true else false;
dictionaries = with pkgs.hunspellDictsChromium; [ en_US de_DE ];
commandLineArgs = [
"--ignore-gpu-blocklist"

View file

@ -1,5 +1,7 @@
{ config, ... }:
{
programs.firefox = {
enable = true;
enable = if config.machine.isGraphical then true else false;
};
}

View file

@ -1,8 +1,8 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.mpv = {
enable = true;
enable = if config.machine.isGraphical then true else false;
scripts = with pkgs.mpvScripts; [ autoload mpris sponsorblock ];
};
}