add circles app

This commit is contained in:
Jonas Heinrich 2023-07-25 18:29:15 +02:00
parent fef97d2ac9
commit 2d26a70252
6 changed files with 37 additions and 35 deletions

2
.vscode/launch.json vendored
View file

@ -14,7 +14,7 @@
"/var/lib/nextcloud/server/3rdparty/sabre/vobject": "${workspaceRoot}/vobject",
"/var/lib/nextcloud/server": "${workspaceRoot}/server",
"/var/lib/nextcloud/server/apps/dav": "${workspaceRoot}/server/apps/dav",
"/var/lib/nextcloud/dev-apps/circles": "${workspaceRoot}/circles",
},
}
]

@ -1 +1 @@
Subproject commit e72d2259dc9a624771a417725c388de1ae57872d
Subproject commit afb60be7d579fdaab9fac66a1228f7c16ea74a0e

@ -1 +1 @@
Subproject commit f3b38fc5c96ce3f0c05b4df95a718724d109f6f1
Subproject commit e76bb81c384eecab6b36e66c277c1e835002ec54

2
server

@ -1 +1 @@
Subproject commit 8cfcb8e2a2f9ba1bbe993161f00d7dcebf07708f
Subproject commit ab27e9508b7c399e7bae77d538f873395fe1334a

View file

@ -27,8 +27,8 @@
installPhase = oldAttrs.installPhase + ''
mkdir -p $out/
cp -R . $out/
#rm -r $out/apps/firstrunwizard
#rm -r $out/apps/password_policy
rm -r $out/apps/firstrunwizard
rm -r $out/apps/password_policy
rm -r $out/apps/circles
'';
dontBuild = true;
@ -42,10 +42,10 @@
enable = true;
package = pkgs.nextcloud27;
hostName = "localhost";
#extraApps = with pkgs.nextcloud27Packages.apps; {
# inherit activity;
#};
#extraAppsEnable = true;
extraApps = with config.services.nextcloud.package.packages.apps; {
inherit calendar contacts;
};
extraAppsEnable = true;
config = {
adminuser = "admin";
adminpassFile = "${pkgs.writeText "adminpass" "test123"}";
@ -62,7 +62,7 @@
"xdebug.start_with_request" = "yes";
"xdebug.idekey" = "ECLIPSE";
};
appstoreEnable = true;
appstoreEnable = false;
configureRedis = true;
caching.apcu = false;
extraOptions = {
@ -88,31 +88,38 @@
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
catch_workers_output = "yes";
};
# apps_paths = [
# {
# path = "/var/lib/nextcloud/nix-apps";
# url = "/nix-apps";
# writeable = false;
# }
# {
# path = "/var/lib/nextcloud/server/apps";
# url = "/apps";
# writeable = false;
# }
# ];
apps_paths = [
{
path = "/var/lib/nextcloud/nix-apps";
url = "/nix-apps";
writable = false;
}
{
path = "/var/lib/nextcloud/apps";
url = "/apps";
writable = false;
}
{
path = "/var/lib/nextcloud/dev-apps";
url = "/dev-apps";
writable = false;
}
];
};
};
# Mount our local development repositories into the VM
nixos-shell.mounts.extraMounts = {
"/var/lib/nextcloud/store-apps/circles" = {
"/var/lib/nextcloud/dev-apps/circles" = {
target = ./circles;
cache = "none";
};
};
# "/var/lib/nextcloud/server" = {
# target = ./server;
# cache = "none";
# };
# #"/var/lib/nextcloud/server" = {
# # target = ./server;
# # cache = "none";
# #};
#};
#};
# "/var/lib/nextcloud/server/apps/calendar" = {
# target = ./calendar;
# cache = "none";
@ -138,7 +145,7 @@
"10.100.100.1"
"127.0.0.1"
];
# Disable any sender validation checks
# Disable any sender vhttps://github.com/obsidiansystems/ipfs-nix-guide/alidation checks
config = lib.concatStrings (
builtins.match "(.*)authorize_sender.*identity\n[ ]+\}(.*)" options.services.maddy.config.default
);
@ -177,11 +184,6 @@
${config.services.nextcloud.occ}/bin/nextcloud-occ user:add --password-from-env user2
${config.services.nextcloud.occ}/bin/nextcloud-occ user:setting user2 settings email "user2@localhost"
${config.services.nextcloud.occ}/bin/nextcloud-occ user:setting admin settings email "admin@localhost"
${config.services.nextcloud.occ}/bin/nextcloud-occ app:enable calendar
rm /var/lib/nextcloud/apps
ln -s /var/lib/nextcloud/server/apps /var/lib/nextcloud/apps
'';
serviceConfig = {
Type = "oneshot";

@ -1 +1 @@
Subproject commit 198196c9cfe436c8c0ee5637a5129a455c9bf404
Subproject commit ac56915f9b88a99118c0ee7f25d4338798514251