1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-22 22:48:31 +02:00

nextcloud-client: add module

Adds the nextcloud-client as a service, simply copying the syntax from owncloud.client.
This commit is contained in:
Manuel Bärenz 2018-11-23 10:43:13 +01:00 committed by Robert Helgesson
parent 456e2d7ed5
commit ffdbefe22c
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
3 changed files with 38 additions and 0 deletions

View File

@ -864,6 +864,13 @@ in
to your Home Manager configuration.
'';
}
{
time = "2018-11-25T22:10:15+00:00";
message = ''
A new module is available: 'services.nextcloud-client'.
'';
}
];
};
}

View File

@ -82,6 +82,7 @@ let
./services/mbsync.nix
./services/mpd.nix
./services/network-manager-applet.nix
./services/nextcloud-client.nix
./services/owncloud-client.nix
./services/parcellite.nix
./services/pasystray.nix

View File

@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
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";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}