From b29099a84b31e9e9511ea0407bf1744c93448209 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 2 Dec 2021 00:05:52 -0500 Subject: [PATCH] Added Nextcloud. --- modules/applications/nextcloud.nix | 23 +++++++++++++++++++++++ modules/profiles/graphical.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 modules/applications/nextcloud.nix diff --git a/modules/applications/nextcloud.nix b/modules/applications/nextcloud.nix new file mode 100644 index 0000000..573cc26 --- /dev/null +++ b/modules/applications/nextcloud.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: { + home-manager.users.james = { + home.packages = with pkgs; [ nextcloud-client ]; + + systemd.user.services = { + nextcloud = { + Unit = { + Description = "Nextcloud - A slighly more GNU friendly dropbox"; + BindsTo = [ "graphical-session.target" ]; + Wants = [ "graphical-session-pre.target" ]; + After = [ "graphical-session-pre.target" ]; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.nextcloud-client}/bin/nextclient --background"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + }; + }; + }; +} diff --git a/modules/profiles/graphical.nix b/modules/profiles/graphical.nix index 77e9af2..b3fb097 100644 --- a/modules/profiles/graphical.nix +++ b/modules/profiles/graphical.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: { imports = [ ../applications/firefox.nix + ../applications/nextcloud.nix ../boot.nix ../cli.nix ../fonts.nix