sql db
This commit is contained in:
parent
1c389114a1
commit
77ff6dd741
|
@ -11,6 +11,8 @@
|
|||
./nvidia.nix
|
||||
../../profiles/desktop.nix
|
||||
../../services/podman.nix
|
||||
../../services/postgres.nix
|
||||
../../services/mysql.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mariadb
|
||||
mysql-workbench
|
||||
jetbrains.datagrip
|
||||
];
|
||||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
postgresql
|
||||
pgadmin4
|
||||
pgadmin4-desktopmode
|
||||
pgmanage
|
||||
postgresql_16
|
||||
];
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
ensureDatabases = [ "testing" ];
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
#type database DBuser auth-method
|
||||
local all all trust
|
||||
'';
|
||||
|
||||
extraPlugins = with pkgs.postgresql16Packages; [postgis pg_repack pgvector];
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue