1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-25 07:58:31 +02:00

qsyncthingtray: add module

This commit is contained in:
André-Patrick Bubel 2018-01-20 11:26:32 +01:00 committed by Robert Helgesson
parent 32b3f7f2d2
commit 071f7aea82
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
3 changed files with 37 additions and 0 deletions

View File

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

View File

@ -53,6 +53,7 @@ let
./services/owncloud-client.nix
./services/parcellite.nix
./services/polybar.nix
./services/qsyncthingtray.nix
./services/random-background.nix
./services/redshift.nix
./services/screen-locker.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";
};
};
};
}