Added Nextcloud.

This commit is contained in:
James Patrick 2021-12-02 00:05:52 -05:00
parent 2287ca2423
commit b29099a84b
2 changed files with 24 additions and 0 deletions

View File

@ -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;
};
};
};
};
}

View File

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
imports = [ imports = [
../applications/firefox.nix ../applications/firefox.nix
../applications/nextcloud.nix
../boot.nix ../boot.nix
../cli.nix ../cli.nix
../fonts.nix ../fonts.nix