1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01: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" ];
};
};
};
}