owncloud-client: add module

This commit is contained in:
Nikita Uvarov 2017-08-26 16:00:55 +02:00 committed by Robert Helgesson
parent 85a71a3923
commit 3bcd9d747b
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
2 changed files with 30 additions and 0 deletions

View file

@ -34,6 +34,7 @@ let
./services/gpg-agent.nix
./services/keepassx.nix
./services/network-manager-applet.nix
./services/owncloud-client.nix
./services/random-background.nix
./services/redshift.nix
./services/syncthing.nix

View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.owncloud-client = {
enable = mkEnableOption "Owncloud Client";
};
};
config = mkIf config.services.owncloud-client.enable {
systemd.user.services.owncloud-client = {
Unit = {
Description = "Owncloud Client";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}