mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
qsyncthingtray: add module
This commit is contained in:
parent
32b3f7f2d2
commit
071f7aea82
3 changed files with 37 additions and 0 deletions
|
@ -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'
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
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