From a8f9f080d2949afc3baceb7ae18e92539cb09987 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 9 Dec 2023 17:37:33 +0100 Subject: [PATCH] update to nixos 23.11 --- calendar | 2 +- flake.lock | 19 +++++++++---------- flake.nix | 13 ++++++++++--- server | 2 +- vm-nextcloud.nix | 25 ++++++++++++------------- 5 files changed, 33 insertions(+), 28 deletions(-) diff --git a/calendar b/calendar index 04eeeaa..df2d51b 160000 --- a/calendar +++ b/calendar @@ -1 +1 @@ -Subproject commit 04eeeaabab222fb35a96bc43b5723e8f7d3607a4 +Subproject commit df2d51b66631c5149e5a4d7db73c0ccad60bb6fc diff --git a/flake.lock b/flake.lock index 48c96ed..00fb477 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "lastModified": 1701680307, + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", "owner": "numtide", "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", "type": "github" }, "original": { @@ -20,18 +20,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1695272228, - "narHash": "sha256-4uw2OdJPVyjdB+xcDst9SecrNIpxKXJ2usN3M5HVa7o=", + "lastModified": 1701282334, + "narHash": "sha256-MxCVrXY6v4QmfTwIysjjaX0XUhqBbxTWWB4HXtDYsdk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "55ac2a9d2024f15c56adf20da505b29659911da8", + "rev": "057f9aecfb71c4437d2b27d3323df7f93c010b7e", "type": "github" }, "original": { - "owner": "NixOS", - "ref": "nixos-23.05", - "repo": "nixpkgs", - "type": "github" + "id": "nixpkgs", + "ref": "23.11", + "type": "indirect" } }, "root": { diff --git a/flake.nix b/flake.nix index 9be0be2..dfca561 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; + nixpkgs.url = "nixpkgs/23.11"; # Required for multi platform support flake-utils.url = "github:numtide/flake-utils"; }; @@ -14,14 +14,21 @@ export QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587" ${pkgs.nixos-shell}/bin/nixos-shell vm-nextcloud.nix ''; + phpunit = pkgs.phpunit.overrideAttrs (oldAttrs: rec { + version = "9.6.13"; + src = pkgs.fetchurl { + url = "https://phar.phpunit.de/phpunit-${version}.phar"; + hash = "sha256-1nxGBJCGBPQMyA91xbVd8baFoGoeqBkf7feFMcxdAeU="; + }; + }); in { devShell = pkgs.mkShell { packages = with pkgs; [ - phpPackages.composer + php82Packages.composer phpunit nodejs - nodePackages.rollup + nodePackages.rollup ]; }; packages = { inherit start; }; diff --git a/server b/server index 5de36b6..28e0ccf 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 5de36b6941f395932ad2889afadb6952b8fd9c20 +Subproject commit 28e0ccfed906525183306ff3d38b67075d688773 diff --git a/vm-nextcloud.nix b/vm-nextcloud.nix index bf7616f..42b32ab 100644 --- a/vm-nextcloud.nix +++ b/vm-nextcloud.nix @@ -1,7 +1,3 @@ -# Todo -# - Creating symlink to config dir -# - Patch chgrp in Nextcloud module - { pkgs, config, lib, options, ... }: { virtualisation = { @@ -10,6 +6,7 @@ }; # FIXME + # is it possible to extend existing module with additional options using flake? disabledModules = [ "services/web-apps/nextcloud.nix" ]; @@ -44,17 +41,19 @@ hostName = "localhost"; extraApps = with config.services.nextcloud.package.packages.apps; { inherit contacts; + # FIXME + # enable hmr when debug flag is enabled hmr_enabler = pkgs.php.buildComposerProject (finalAttrs: { pname = "hmr_enabler"; version = "1.0.0"; src = pkgs.fetchFromGitHub { - owner = "onny"; + owner = "nextcloud"; repo = "hmr_enabler"; - rev = "85404e232344c856133e0b14e3ea30bbb8118034"; - hash = "sha256-mxUTWQozqcnTnlHrUtfUcsAX+X/N0fcLiUec4cGjGdg="; + rev = "b8d3ad290bfa6fe407280587181a5167d71a2617"; + hash = "sha256-yXFby5zlDiPdrw6HchmBoUdu9Zjfgp/bSu0G/isRpKg="; }; composerNoDev = false; - vendorHash = "sha256-ENfs9gsXtrWP7u8+LKDMQ+hhiP3UKtn6t5lPl6wKOdQ="; + vendorHash = "sha256-PCWWu/SqTUGnZXUnXyL8c72p8L14ZUqIxoa5i49XPH4="; postInstall = '' cp -r $out/share/php/hmr_enabler/* $out/ rm -r $out/share @@ -117,16 +116,16 @@ }; nixos-shell.mounts.extraMounts = { - "/var/lib/nextcloud/calendar" = { - target = ./calendar; + "/var/lib/nextcloud/cleanup" = { + target = ./cleanup; cache = "none"; }; }; systemd.mounts = [ { - what = "/var/lib/nextcloud/calendar"; - where = "/var/lib/nextcloud/store-apps/calendar"; + what = "/var/lib/nextcloud/cleanup"; + where = "/var/lib/nextcloud/store-apps/cleanup"; type = "fuse.bindfs"; options = "uid=997,gid=997"; wantedBy = [ "multi-user.target" ]; @@ -194,7 +193,7 @@ system.fsPackages = [ pkgs.bindfs ]; - system.stateVersion = "23.05"; + system.stateVersion = "23.11"; documentation = { info.enable = false;