diff options
author | Nikita Uvarov <uv.nikita@gmail.com> | 2017-08-26 16:00:55 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-08-26 22:56:26 +0200 |
commit | 3bcd9d747b102b825bdf218245652eb763045d6c (patch) | |
tree | ae68c67a3bbb9eea60b261dfdd158817e7c298a2 /modules/services/owncloud-client.nix | |
parent | 85a71a3923cdf1b482c8a1d5b617e017dbefc974 (diff) |
owncloud-client: add module
Diffstat (limited to 'modules/services/owncloud-client.nix')
-rw-r--r-- | modules/services/owncloud-client.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/services/owncloud-client.nix b/modules/services/owncloud-client.nix new file mode 100644 index 00000000000..e168ab11197 --- /dev/null +++ b/modules/services/owncloud-client.nix @@ -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" ]; + }; + }; + }; +} |