nixos-config/features/desktopish/taffybar/default.nix
Sridhar Ratnakumar 80d08d67eb refactor
2021-11-20 11:58:27 -05:00

30 lines
747 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;
};
# https://github.com/taffybar/taffybar/issues/403
services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
gtk.iconCache.enable = true;
environment.systemPackages = with pkgs; [
# https://github.com/NixOS/nixpkgs/issues/43836#issuecomment-419217138
hicolor-icon-theme
gnome-icon-theme
];
}