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 let
inherit (lib) mkIf;
profile = { profile = {
Appearance = { Appearance = {
AntiAliasFonts = true; AntiAliasFonts = true;
@ -47,7 +48,7 @@ let
}; };
in in
{ {
config = { config = mkIf config.kde.enable {
environment = { environment = {
systemPackages = [ systemPackages = [
profilePkg profilePkg

View File

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