From a798b5689d3a157a19b1c24a168224181980c939 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 29 Aug 2023 21:58:59 +0400 Subject: [PATCH] add nextcloud --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/default.nix | 1 + modules/desktop/apps/nextcloud/default.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 modules/desktop/apps/nextcloud/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index b19392e1..05dd5490 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -40,6 +40,7 @@ kindle-comic-converter.enable = true; mangal.enable = true; obs.enable = true; + nextcloud.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index 8b39b24d..2d4a7104 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -10,5 +10,6 @@ ./calibre ./mangal ./obs + ./nextcloud ]; } diff --git a/modules/desktop/apps/nextcloud/default.nix b/modules/desktop/apps/nextcloud/default.nix new file mode 100644 index 00000000..10e7d9ab --- /dev/null +++ b/modules/desktop/apps/nextcloud/default.nix @@ -0,0 +1,17 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.apps.nextcloud; +in +{ + options.modules.desktop.apps.nextcloud = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + nextcloud-client + ]; + + }; +}