Application des patch pour mediawiki et nextcloud

tmp
Lyes Saadi 2026-11-19 16:58:34 +01:00
parent bc90c8b37a
commit d6d8934811
No known key found for this signature in database
GPG Key ID: 55A1D803917CF39A
2 changed files with 54 additions and 1 deletions

View File

@ -1,5 +1,13 @@
{ ... }:
{ pkgs, lib, ... }:
let
patched_nixpkgs = import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "69467f449339164b3f036b1dfa27b1b0c5e38925";
sha256 = "sha256-zmAhBnYUn1isWKdRr5T+qnQNJ4iwRvpMtnsbQfSh3Pg=";
}) { system = "x86_64-linux"; };
in
{
imports = [
./hardware-configuration.nix
@ -12,5 +20,28 @@
networking.hostName = "mediakiwi";
boot.loader.grub.devices = [ "/dev/sda" ];
# Patch à la mano de php
nixpkgs.overlays = [
(self: super: {
inherit (patched_nixpkgs)
php82
php83
php84
php85
;
})
];
services.mediawiki.phpPackage = lib.mkForce (patched_nixpkgs.php83.buildEnv {
extensions =
{ all, enabled }:
enabled
++ (with all; [
apcu
imagick
luasandbox
]);
});
system.stateVersion = "25.05";
}

View File

@ -1,5 +1,13 @@
{ pkgs, config, ... }:
let
patched_nixpkgs = import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "69467f449339164b3f036b1dfa27b1b0c5e38925";
sha256 = "sha256-zmAhBnYUn1isWKdRr5T+qnQNJ4iwRvpMtnsbQfSh3Pg=";
}) { system = "x86_64-linux"; };
in
{
imports = [
./hardware-configuration.nix
@ -9,6 +17,20 @@
networking.hostName = "nextcloud";
boot.loader.grub.devices = [ "/dev/sda" ];
# Patch à la mano de php
nixpkgs.overlays = [
(self: super: {
inherit (patched_nixpkgs)
php82
php83
php84
php85
;
})
];
services.nextcloud.phpPackage = patched_nixpkgs.php84;
services.autofs =
let
autoMaster = pkgs.writeScript "home-nextcloud" ''