diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 71056fa1..c360cba2 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -6,6 +6,7 @@ ./firefox ./gnupg ./mail + ./nextcloud-client ./pass ./sound ./terminal @@ -32,6 +33,7 @@ pinentryFlavor = "gtk2"; }; mail.enable = lib.mkDefault true; + nextcloud-client.enable = lib.mkDefault true; pass.enable = lib.mkDefault true; sound.enable = lib.mkDefault true; terminal.enable = lib.mkDefault true; diff --git a/modules/graphical/nextcloud-client/default.nix b/modules/graphical/nextcloud-client/default.nix new file mode 100644 index 00000000..c70aab68 --- /dev/null +++ b/modules/graphical/nextcloud-client/default.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +{ + options.chvp.graphical.nextcloud-client.enable = lib.mkOption { + default = false; + example = true; + }; + + config = lib.mkIf config.chvp.graphical.nextcloud-client.enable { + chvp.base.zfs.homeLinks = [ + { path = ".config/Nextcloud"; type = "cache"; } + { path = ".local/share/Nextcloud"; type = "cache"; } + { path = "sync"; type = "cache"; } + ]; + home-manager.users.charlotte = { ... }: { + services.nextcloud-client = { + enable = true; + startInBackground = true; + }; + }; + }; +}