1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00
home-manager/modules/services/owncloud-client.nix

30 lines
601 B
Nix
Raw Normal View History

2017-08-26 16:00:55 +02: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 = {
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}