mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-22 15:58:16 +08:00
20 lines
429 B
Nix
20 lines
429 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
taffyPkg = pkgs.callPackage ./taffybar-srid { inherit pkgs; };
|
|
in
|
|
{
|
|
systemd.user.services.taffybar = {
|
|
enable = true;
|
|
description = "Taffybar";
|
|
wantedBy = [ "graphical-session.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${taffyPkg}/bin/taffybar-srid";
|
|
Restart = "on-abnormal";
|
|
};
|
|
};
|
|
|
|
# Battery widget requires this.
|
|
services.upower = {
|
|
enable = true;
|
|
};
|
|
}
|