1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-02 19:38:32 +02:00
home-manager/modules/services/qsyncthingtray.nix
2018-01-20 11:51:39 +01:00

30 lines
623 B
Nix

{ 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";
};
};
};
}