1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00
home-manager/modules/services/taffybar.nix
Robert Helgesson dd0e71d686
Rename xorg.target to graphical-session.target
Also make sure graphical-session.target is generated.
2017-01-15 23:41:53 +01:00

41 lines
788 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.taffybar;
in
{
options = {
services.taffybar = {
enable = mkEnableOption "Taffybar";
package = mkOption {
default = pkgs.taffybar;
defaultText = "pkgs.taffybar";
type = types.package;
example = literalExample "pkgs.taffybar";
description = "The package to use for the Taffybar binary.";
};
};
};
config = mkIf config.services.taffybar.enable {
systemd.user.services.taffybar = {
Unit = {
Description = "Taffybar desktop bar";
};
Service = {
ExecStart = "${cfg.package}/bin/taffybar";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}