mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 16:36:28 +08:00
23 lines
624 B
Nix
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;
|
|
};
|
|
}
|