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 = { programs.alacritty = {
enable = true; enable = if config.machine.isGraphical then true else false;
settings = { settings = {
window = { window = {
decorations = "full"; decorations = "full";

View file

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

View file

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

View file

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