Waybar : Replace nixpkgs option with a simple package.

This commit is contained in:
Dmitry Voronin 2024-09-29 19:26:13 +03:00
parent e2d103c4c0
commit 6c69348655
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: with lib; let
{ lib, config, pkgs, ... }: with lib; let
cfg = config.module.desktop.waybar;
in {
options = {
@ -8,10 +8,7 @@ in {
};
config = mkIf cfg.enable {
programs.waybar.enable = true;
# Do not start automatically ffs.
systemd.user.services.waybar.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [ waybar ];
};
}