mirror of https://gitlab.crans.org/nounous/nixos
Application des patch pour mediawiki et nextcloud
parent
bc90c8b37a
commit
d6d8934811
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue