nixos/waybar: init module
This commit is contained in:
parent
b76e608ecc
commit
52d0db7e73
|
@ -136,6 +136,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
|
||||||
|
|
|
@ -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 ];
|
||||||
|
}
|
Loading…
Reference in New Issue