qsyncthingtray: add module

This commit is contained in:
André-Patrick Bubel 2018-01-20 11:26:32 +01:00
parent 32b3f7f2d2
commit c4372a1275
No known key found for this signature in database
GPG key ID: 28925CBA8869FF29
3 changed files with 38 additions and 0 deletions

View file

@ -531,6 +531,14 @@ in
${opts.${config.home.sessionVariableSetter}}
'';
}
{
time = "2018-01-20T10:36:12+00:00";
message = ''
A new module is available: 'services.qsyncthingtray'
'';
}
];
};

View file

@ -56,6 +56,7 @@ let
./services/random-background.nix
./services/redshift.nix
./services/screen-locker.nix
./services/qsyncthingtray.nix
./services/syncthing.nix
./services/taffybar.nix
./services/tahoe-lafs.nix

View file

@ -0,0 +1,29 @@
{ 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";
};
};
};
}