qsyncthingtray: add module
This commit is contained in:
parent
32b3f7f2d2
commit
c4372a1275
|
@ -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'
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
29
modules/services/qsyncthingtray.nix
Normal file
29
modules/services/qsyncthingtray.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue