1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02:00

owncloud-client: add module

This commit is contained in:
Nikita Uvarov 2017-08-26 16:00:55 +02:00 committed by Robert Helgesson
parent 85a71a3923
commit 3bcd9d747b
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
2 changed files with 30 additions and 0 deletions

View File

@ -34,6 +34,7 @@ let
./services/gpg-agent.nix
./services/keepassx.nix
./services/network-manager-applet.nix
./services/owncloud-client.nix
./services/random-background.nix
./services/redshift.nix
./services/syncthing.nix

View File

@ -0,0 +1,29 @@
{ 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" ];
};
};
};
}