From 1c7a0c7dbef06d17c7b5098cda3fb619d9496d3b Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 11 Aug 2024 17:23:54 +0200 Subject: [PATCH] Enable dependent on WM --- home/polybar.nix | 4 ++-- home/redshift.nix | 4 ++-- home/waybar.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/home/polybar.nix b/home/polybar.nix index 6f9275f..59a2923 100644 --- a/home/polybar.nix +++ b/home/polybar.nix @@ -1,6 +1,6 @@ -{ pkgs, ... }: { +{ config, pkgs, ... }: { services.polybar = { - enable = true; + enable = config.xsession.windowManager.i3.enable; config = { "bar/top" = { monitor = "\${env:MONITOR:}"; diff --git a/home/redshift.nix b/home/redshift.nix index 836c641..998e9e8 100644 --- a/home/redshift.nix +++ b/home/redshift.nix @@ -1,6 +1,6 @@ -{ ... }: { +{ config, ... }: { services.redshift = { - enable = true; + enable = config.xsession.windowManager.i3.enable; longitude = "49.01315"; latitude = "12.1119"; }; diff --git a/home/waybar.nix b/home/waybar.nix index b4e3823..face4e3 100644 --- a/home/waybar.nix +++ b/home/waybar.nix @@ -1,6 +1,6 @@ -{ pkgs, ... }: { +{ config, pkgs, ... }: { programs.waybar = { - enable = true; + enable = config.wayland.windowManager.sway.enable; systemd.enable = true; settings = { mainBar = {