update nixos base system and nextcloud version
This commit is contained in:
parent
f102f48aa1
commit
fef97d2ac9
8 changed files with 82 additions and 79 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -11,3 +11,6 @@
|
||||||
[submodule "vobject"]
|
[submodule "vobject"]
|
||||||
path = vobject
|
path = vobject
|
||||||
url = git@github.com:sabre-io/vobject.git
|
url = git@github.com:sabre-io/vobject.git
|
||||||
|
[submodule "circles"]
|
||||||
|
path = circles
|
||||||
|
url = https://github.com/nextcloud/circles.git
|
||||||
|
|
|
||||||
2
calendar
2
calendar
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3548c55b17b14f40c7f75b439e85e87b685717fa
|
Subproject commit e72d2259dc9a624771a417725c388de1ae57872d
|
||||||
1
circles
Submodule
1
circles
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f3b38fc5c96ce3f0c05b4df95a718724d109f6f1
|
||||||
2
dav
2
dav
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8e09bff0d50ecdc3c68b3dffa59302c1d57d5f9d
|
Subproject commit 406f688f040ec5aef04a78b6e525805682bd81f3
|
||||||
32
flake.lock
generated
32
flake.lock
generated
|
|
@ -1,12 +1,15 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1678901627,
|
"lastModified": 1689068808,
|
||||||
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
|
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
|
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -17,16 +20,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1683408522,
|
"lastModified": 1689431009,
|
||||||
"narHash": "sha256-9kcPh6Uxo17a3kK3XCHhcWiV1Yu1kYj22RHiymUhMkU=",
|
"narHash": "sha256-hPgQCRWP5q/Xc4qOIP3c2krR9nQua78+t9EDiuey5nc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "897876e4c484f1e8f92009fd11b7d988a121a4e7",
|
"rev": "af8279f65fe71ce5a448408034a8c06e2b4b2c66",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-23.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -36,6 +39,21 @@
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
# FIXME: Switch to 23.05 when phpunit released
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
# Required for multi platform support
|
# Required for multi platform support
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
2
server
2
server
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3d4015ae4dc079d1a2be0d3a573edef20264d701
|
Subproject commit 8cfcb8e2a2f9ba1bbe993161f00d7dcebf07708f
|
||||||
116
vm-nextcloud.nix
116
vm-nextcloud.nix
|
|
@ -12,26 +12,24 @@
|
||||||
# FIXME
|
# FIXME
|
||||||
disabledModules = [
|
disabledModules = [
|
||||||
"services/web-apps/nextcloud.nix"
|
"services/web-apps/nextcloud.nix"
|
||||||
"services/mail/maddy.nix"
|
|
||||||
];
|
];
|
||||||
imports = [
|
imports = [
|
||||||
./nextcloud.nix
|
./nextcloud.nix ];
|
||||||
"${fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz"}/nixos/modules/services/mail/maddy.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
# Remove first run wizard and password policy check from Nextcloud
|
# Remove first run wizard and password policy check from Nextcloud
|
||||||
# package
|
# package
|
||||||
nextcloud26 = super.nextcloud26.overrideAttrs (oldAttrs: rec {
|
nextcloud27 = super.nextcloud27.overrideAttrs (oldAttrs: rec {
|
||||||
patches = [];
|
#patches = [];
|
||||||
src = ./server;
|
#src = ./server;
|
||||||
installPhase = oldAttrs.installPhase + ''
|
installPhase = oldAttrs.installPhase + ''
|
||||||
mkdir -p $out/
|
mkdir -p $out/
|
||||||
cp -R . $out/
|
cp -R . $out/
|
||||||
#rm -r $out/apps/firstrunwizard
|
#rm -r $out/apps/firstrunwizard
|
||||||
#rm -r $out/apps/password_policy
|
#rm -r $out/apps/password_policy
|
||||||
|
rm -r $out/apps/circles
|
||||||
'';
|
'';
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
});
|
});
|
||||||
|
|
@ -42,12 +40,12 @@
|
||||||
# Setup Nextcloud including apps
|
# Setup Nextcloud including apps
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud26;
|
package = pkgs.nextcloud27;
|
||||||
hostName = "localhost";
|
hostName = "localhost";
|
||||||
#extraApps = with pkgs.nextcloud26Packages.apps; {
|
#extraApps = with pkgs.nextcloud27Packages.apps; {
|
||||||
# inherit calendar;
|
# inherit activity;
|
||||||
#};
|
#};
|
||||||
extraAppsEnable = true;
|
#extraAppsEnable = true;
|
||||||
config = {
|
config = {
|
||||||
adminuser = "admin";
|
adminuser = "admin";
|
||||||
adminpassFile = "${pkgs.writeText "adminpass" "test123"}";
|
adminpassFile = "${pkgs.writeText "adminpass" "test123"}";
|
||||||
|
|
@ -64,26 +62,16 @@
|
||||||
"xdebug.start_with_request" = "yes";
|
"xdebug.start_with_request" = "yes";
|
||||||
"xdebug.idekey" = "ECLIPSE";
|
"xdebug.idekey" = "ECLIPSE";
|
||||||
};
|
};
|
||||||
appstoreEnable = false;
|
appstoreEnable = true;
|
||||||
caching = {
|
configureRedis = true;
|
||||||
redis = true;
|
caching.apcu = false;
|
||||||
apcu = false;
|
|
||||||
};
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
mail_smtpmode = "sendmail";
|
mail_smtpmode = "sendmail";
|
||||||
mail_sendmailmode = "pipe";
|
mail_sendmailmode = "pipe";
|
||||||
debug = true;
|
log_type = "syslog";
|
||||||
logLevel = 0;
|
syslog_tag = "Nextcloud";
|
||||||
|
loglevel = 0;
|
||||||
trusted_domains = [ "10.100.100.1" ];
|
trusted_domains = [ "10.100.100.1" ];
|
||||||
redis = {
|
|
||||||
host = "/run/redis-nextcloud/redis.sock";
|
|
||||||
port = 0;
|
|
||||||
};
|
|
||||||
memcache = {
|
|
||||||
local = "\\OC\\Memcache\\Redis";
|
|
||||||
distributed = "\\OC\\Memcache\\Redis";
|
|
||||||
locking = "\\OC\\Memcache\\Redis";
|
|
||||||
};
|
|
||||||
phpOptions = {
|
phpOptions = {
|
||||||
short_open_tag = "Off";
|
short_open_tag = "Off";
|
||||||
expose_php = "Off";
|
expose_php = "Off";
|
||||||
|
|
@ -100,41 +88,44 @@
|
||||||
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
|
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
catch_workers_output = "yes";
|
catch_workers_output = "yes";
|
||||||
};
|
};
|
||||||
apps_paths = [
|
# apps_paths = [
|
||||||
{
|
# {
|
||||||
path = "/var/lib/nextcloud/nix-apps";
|
# path = "/var/lib/nextcloud/nix-apps";
|
||||||
url = "/nix-apps";
|
# url = "/nix-apps";
|
||||||
writeable = false;
|
# writeable = false;
|
||||||
}
|
# }
|
||||||
{
|
# {
|
||||||
path = "/var/lib/nextcloud/server/apps";
|
# path = "/var/lib/nextcloud/server/apps";
|
||||||
url = "/apps";
|
# url = "/apps";
|
||||||
writeable = false;
|
# writeable = false;
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Mount our local development repositories into the VM
|
# Mount our local development repositories into the VM
|
||||||
nixos-shell.mounts.extraMounts = {
|
nixos-shell.mounts.extraMounts = {
|
||||||
"/var/lib/nextcloud/server" = {
|
"/var/lib/nextcloud/store-apps/circles" = {
|
||||||
target = ./server;
|
target = ./circles;
|
||||||
cache = "none";
|
|
||||||
};
|
|
||||||
"/var/lib/nextcloud/server/apps/calendar" = {
|
|
||||||
target = ./calendar;
|
|
||||||
cache = "none";
|
|
||||||
};
|
|
||||||
"/var/lib/nextcloud/server/3rdparty/sabre/dav" = {
|
|
||||||
target = ./dav;
|
|
||||||
cache = "none";
|
cache = "none";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."localhost".root = lib.mkForce "/var/lib/nextcloud/server";
|
# "/var/lib/nextcloud/server" = {
|
||||||
services.redis.servers.nextcloud = {
|
# target = ./server;
|
||||||
enable = true;
|
# cache = "none";
|
||||||
user = "nextcloud";
|
# };
|
||||||
port = 0;
|
# "/var/lib/nextcloud/server/apps/calendar" = {
|
||||||
};
|
# target = ./calendar;
|
||||||
|
# cache = "none";
|
||||||
|
# };
|
||||||
|
# "/var/lib/nextcloud/server/apps/activity" = {
|
||||||
|
# target = ./activity;
|
||||||
|
# cache = "none";
|
||||||
|
# };
|
||||||
|
# "/var/lib/nextcloud/server/3rdparty/sabre/dav" = {
|
||||||
|
# target = ./dav;
|
||||||
|
# cache = "none";
|
||||||
|
# };
|
||||||
|
#services.nginx.virtualHosts."localhost".root = lib.mkForce "/var/lib/nextcloud/server";
|
||||||
|
|
||||||
# Setup mail server
|
# Setup mail server
|
||||||
services.maddy = {
|
services.maddy = {
|
||||||
|
|
@ -156,11 +147,11 @@
|
||||||
"user2@localhost"
|
"user2@localhost"
|
||||||
"admin@localhost"
|
"admin@localhost"
|
||||||
];
|
];
|
||||||
ensureCredentials = [
|
ensureCredentials = {
|
||||||
"user1@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
"user1@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
||||||
"user2@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
"user2@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
||||||
"admin@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
"admin@localhost".passwordFile = "${pkgs.writeText "password" "test123"}";
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure local mail delivery
|
# Configure local mail delivery
|
||||||
|
|
@ -200,16 +191,7 @@
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Required for php unit testing
|
system.stateVersion = "23.05";
|
||||||
environment.systemPackages = with pkgs; [ php sqlite htop ];
|
|
||||||
# FIXME Package phpunit?
|
|
||||||
# Inside /var/lib/nextcloud/server run
|
|
||||||
# composer require phpunit/phpunit
|
|
||||||
environment.interactiveShellInit = ''
|
|
||||||
export PATH="$PATH:/var/lib/nextcloud/server/lib/composer/bin"
|
|
||||||
'';
|
|
||||||
|
|
||||||
system.stateVersion = "22.11";
|
|
||||||
|
|
||||||
documentation.info.enable = false;
|
documentation.info.enable = false;
|
||||||
documentation.man.enable = false;
|
documentation.man.enable = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue