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