1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01: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}} ${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/owncloud-client.nix
./services/parcellite.nix ./services/parcellite.nix
./services/polybar.nix ./services/polybar.nix
./services/qsyncthingtray.nix
./services/random-background.nix ./services/random-background.nix
./services/redshift.nix ./services/redshift.nix
./services/screen-locker.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";
};
};
};
}