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
|
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
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user