configs/{polybar,konsole}: only install on gui-enabled machines

This commit is contained in:
Aaron Bieber 2024-04-23 12:58:38 -06:00
parent 7254e2f734
commit 4a82bb017a
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
{ pkgs, ... }:
{ pkgs, lib, config, ... }:
let
inherit (lib) mkIf;
profile = {
Appearance = {
AntiAliasFonts = true;
@ -47,7 +48,7 @@ let
};
in
{
config = {
config = mkIf config.kde.enable {
environment = {
systemPackages = [
profilePkg

View File

@ -1,5 +1,6 @@
{ pkgs, ... }:
{ pkgs, config, lib, ... }:
let
inherit (lib) mkIf;
barBase = {
background = "\${colors.background}";
foreground = "\${colors.foreground}";
@ -113,7 +114,7 @@ let
settingsFile = settingsFormat.generate "polybar-config.ini" settings;
in
{
config = {
config = mkIf (config.kde.enable || config.gnome.enable || config.xfce.enable) {
environment = {
systemPackages = [ pkgs.polybar ];
etc = {