2
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 04:53:26 +00:00
home-manager/modules/services/nextcloud-client.nix

27 lines
650 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
options = {
2020-02-01 23:39:17 +00:00
services.nextcloud-client = { enable = mkEnableOption "Nextcloud Client"; };
};
config = mkIf config.services.nextcloud-client.enable {
systemd.user.services.nextcloud-client = {
Unit = {
Description = "Nextcloud Client";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud";
};
2020-02-01 23:39:17 +00:00
Install = { WantedBy = [ "graphical-session.target" ]; };
};
};
}