Skip to content

Commit

Permalink
web-server: configure adminer with new theme
Browse files Browse the repository at this point in the history
Use the new package `adminer-pematon-with-adminer-theme` from this flake
  • Loading branch information
JohnRTitor committed Nov 3, 2024
1 parent ccbdbe4 commit c2bc5cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 50 deletions.
28 changes: 0 additions & 28 deletions home-manager/web-server-html/adminer/index.php

This file was deleted.

28 changes: 6 additions & 22 deletions home-manager/web-server-html/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# THIS ONLY PLACES THE CONFIG FILES, DOES NOT INSTALL NGINX
# For that see ../../dev-environment/nginx.nix
# Import of thie module is controlled by bool: servicesSettings.nginx
{pkgs, ...}:
{pkgs, self, ...}:
let
# Updated adminer
adminer-new = pkgs.fetchurl {
Expand All @@ -29,29 +29,13 @@ in {

# To use adminer, just type localhost/dbms/adminer.php in your browser
# This configuration automatically places the php file in the correct location
"Website-Instances/adminer/adminer.php".source = adminer-new;

# Adminer theme
"Website-Instances/adminer/index.php" = {
source = ./adminer/index.php;
};
"Website-Instances/adminer/css" = {
source = "${adminer-theme}/lib/css";
recursive = true;
};
"Website-Instances/adminer/fonts" = {
source = "${adminer-theme}/lib/fonts";
# Adminer pematon (new version) with adminer theme
# After any changes we need to restart the services
# systemctl restart phpfpm-mypool.service nginx.service
"Website-Instances/adminer" = {
source = self.packages.${pkgs.system}.adminer-pematon-with-adminer-theme;
recursive = true;
};
"Website-Instances/adminer/images" = {
source = "${adminer-theme}/lib/images";
recursive = true;
};
"Website-Instances/adminer/plugins/AdminerTheme.php" = {
source = "${adminer-theme}/lib/plugins/AdminerTheme.php";
};
"Website-Instances/adminer/plugins/plugin.php" = {
source = adminer-new-plugin-php;
};
};
}

0 comments on commit c2bc5cc

Please sign in to comment.