Merge pull request #54627 from FlorianFranzen/waybar
waybar: init at 0.4.0
This commit is contained in:
commit
0cd7f32a4c
@ -137,6 +137,7 @@
|
|||||||
./programs/vim.nix
|
./programs/vim.nix
|
||||||
./programs/wavemon.nix
|
./programs/wavemon.nix
|
||||||
./programs/way-cooler.nix
|
./programs/way-cooler.nix
|
||||||
|
./programs/waybar.nix
|
||||||
./programs/wireshark.nix
|
./programs/wireshark.nix
|
||||||
./programs/xfs_quota.nix
|
./programs/xfs_quota.nix
|
||||||
./programs/xonsh.nix
|
./programs/xonsh.nix
|
||||||
|
20
nixos/modules/programs/waybar.nix
Normal file
20
nixos/modules/programs/waybar.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
options.programs.waybar = {
|
||||||
|
enable = mkEnableOption "waybar";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.programs.waybar.enable {
|
||||||
|
systemd.user.services.waybar = {
|
||||||
|
description = "Waybar as systemd service";
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
|
script = "${pkgs.waybar}/bin/waybar";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.maintainers = [ maintainers.FlorianFranzen ];
|
||||||
|
}
|
43
pkgs/applications/misc/waybar/default.nix
Normal file
43
pkgs/applications/misc/waybar/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja
|
||||||
|
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt
|
||||||
|
, traySupport ? true, libdbusmenu-gtk3
|
||||||
|
, pulseSupport ? false, libpulseaudio
|
||||||
|
, nlSupport ? true, libnl
|
||||||
|
, swaySupport ? true, sway
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "waybar-${version}";
|
||||||
|
version = "0.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Alexays";
|
||||||
|
repo = "Waybar";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0vkx1b6bgr75wkx89ppxhg4103vl2g0sky22npmfkvbkpgh8dj38";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson ninja pkgconfig
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = with stdenv.lib;
|
||||||
|
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt ]
|
||||||
|
++ optional traySupport libdbusmenu-gtk3
|
||||||
|
++ optional pulseSupport libpulseaudio
|
||||||
|
++ optional nlSupport libnl
|
||||||
|
++ optional swaySupport sway;
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Ddbusmenu-gtk=${ if traySupport then "enabled" else "disabled" }"
|
||||||
|
"-Dpulseaudio=${ if pulseSupport then "enabled" else "disabled" }"
|
||||||
|
"-Dlibnl=${ if nlSupport then "enabled" else "disabled" }"
|
||||||
|
"-Dout=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.FlorianFranzen ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -17759,6 +17759,10 @@ in
|
|||||||
swayidle = callPackage ../applications/window-managers/sway/idle.nix { };
|
swayidle = callPackage ../applications/window-managers/sway/idle.nix { };
|
||||||
swaylock = callPackage ../applications/window-managers/sway/lock.nix { };
|
swaylock = callPackage ../applications/window-managers/sway/lock.nix { };
|
||||||
|
|
||||||
|
waybar = callPackage ../applications/misc/waybar {
|
||||||
|
pulseSupport = config.pulseaudio or false;
|
||||||
|
};
|
||||||
|
|
||||||
velox = callPackage ../applications/window-managers/velox {
|
velox = callPackage ../applications/window-managers/velox {
|
||||||
stConf = config.st.conf or null;
|
stConf = config.st.conf or null;
|
||||||
stPatches = config.st.patches or null;
|
stPatches = config.st.patches or null;
|
||||||
|
Loading…
Reference in New Issue
Block a user