2017-08-26 14:00:55 +00:00
|
|
|
{ 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 = {
|
2018-05-04 11:01:34 +00:00
|
|
|
Environment = "PATH=%h/.nix-profile/bin";
|
2017-08-26 14:00:55 +00:00
|
|
|
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
|
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
|
|
|
WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|