configs/{polybar,konsole}: only install on gui-enabled machines
This commit is contained in:
parent
7254e2f734
commit
4a82bb017a
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user