1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-04 20:33:27 +02:00
home-manager/modules/services/qsyncthingtray.nix

30 lines
623 B
Nix
Raw Normal View History

2018-01-20 11:26:32 +01:00
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.qsyncthingtray = {
enable = mkEnableOption "QSyncthingTray";
};
};
config = mkIf config.services.qsyncthingtray.enable {
systemd.user.services.qsyncthingtray = {
Unit = {
Description = "QSyncthingTray";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
};
};
};
}