nixos-config/modules/nixos/linux/gui/desktopish/xmobar/default.nix
2024-09-28 18:01:53 -04:00

23 lines
624 B
Nix

{ config, pkgs, ... }:
let
xmobarPkg = pkgs.callPackage ./xmobar-srid { inherit pkgs; };
in
{
systemd.user.services.xmobar = {
enable = true;
description = "Xmobar";
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${xmobarPkg}/bin/xmobar-srid";
# ExecStart = "${pkgs.xmobar}/bin/xmobar -v -x 2 -f xft:Consolas:size=12 -c '[Run PipeReader \"/etc/nixos/pipe\" \"thepipe\"]' -t \"%%thepipe%%\"";
Restart = "on-abnormal";
};
};
environment.systemPackages = [ xmobarPkg ];
# Battery widget requires this.
services.upower = {
enable = true;
};
}