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 = {