From 4b1046c002f543cdc4d237596f04211b424062f8 Mon Sep 17 00:00:00 2001 From: Mirza Arnaut Date: Mon, 18 Nov 2024 02:03:57 +0100 Subject: [PATCH] Disable waybar and eww if pc is not on --- modules/home-manager/pc/default.nix | 6 +++++- modules/home-manager/pc/desktop/bars/eww/default.nix | 2 +- modules/home-manager/pc/desktop/bars/waybar/default.nix | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/pc/default.nix b/modules/home-manager/pc/default.nix index db88eea..c0d6904 100644 --- a/modules/home-manager/pc/default.nix +++ b/modules/home-manager/pc/default.nix @@ -24,6 +24,10 @@ pc.programs.enable = lib.mkDefault true; terminals.enable = lib.mkDefault true; - programs.autorandr.enable = lib.mkDefault true; + programs = { + autorandr.enable = lib.mkDefault true; + eww.enable = lib.mkDefault true; + waybar.enable = lib.mkDefault true; + }; }; } diff --git a/modules/home-manager/pc/desktop/bars/eww/default.nix b/modules/home-manager/pc/desktop/bars/eww/default.nix index f81e257..29e1b45 100644 --- a/modules/home-manager/pc/desktop/bars/eww/default.nix +++ b/modules/home-manager/pc/desktop/bars/eww/default.nix @@ -9,7 +9,7 @@ config = lib.mkIf config.bars.eww.enable { programs.eww = { - enable = true; + # enable = true; package = pkgs.unstable.eww; # enableZshIntegration = true; # configDir = "~/.config/eww"; diff --git a/modules/home-manager/pc/desktop/bars/waybar/default.nix b/modules/home-manager/pc/desktop/bars/waybar/default.nix index 11c2841..f0b3044 100644 --- a/modules/home-manager/pc/desktop/bars/waybar/default.nix +++ b/modules/home-manager/pc/desktop/bars/waybar/default.nix @@ -17,7 +17,7 @@ # enableRightBackColors = true; # }; programs.waybar = { - enable = true; + # enable = true; settings = { mainBar = { layer = "top";