15 lines
429 B
Nix
15 lines
429 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
# expose nextcloud client into the environment
|
|
environment.systemPackages = [ pkgs.nextcloud-client ];
|
|
|
|
systemd.user.services.nextcloud = {
|
|
description = "Nextcloud Client Service";
|
|
wantedBy = [ "gnome-session.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
|
|
Restart = "always";
|
|
Slice = "background.slice";
|
|
};
|
|
};
|
|
}
|