mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +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:
parent
456e2d7ed5
commit
ffdbefe22c
3 changed files with 38 additions and 0 deletions
|
@ -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'.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
30
modules/services/nextcloud-client.nix
Normal file
30
modules/services/nextcloud-client.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue