Waybar : Replace nixpkgs option with a simple package.
This commit is contained in:
parent
e2d103c4c0
commit
6c69348655
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, ... }: with lib; let
|
{ lib, config, pkgs, ... }: with lib; let
|
||||||
cfg = config.module.desktop.waybar;
|
cfg = config.module.desktop.waybar;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
@ -8,10 +8,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.waybar.enable = true;
|
environment.systemPackages = with pkgs; [ waybar ];
|
||||||
|
|
||||||
# Do not start automatically ffs.
|
|
||||||
systemd.user.services.waybar.enable = lib.mkForce false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue