mirror of https://gitlab.crans.org/nounous/nixos
48 lines
940 B
Nix
48 lines
940 B
Nix
{ 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
|
|
./mediawiki.nix
|
|
|
|
../../../modules
|
|
../../../modules/crans/nullmailer.nix
|
|
];
|
|
|
|
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";
|
|
}
|