mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2025-01-28 11:10:50 +01:00
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.
|
||||
|
19
services/mysql.nix
Normal file
19
services/mysql.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mariadb
|
||||
mysql-workbench
|
||||
jetbrains.datagrip
|
||||
];
|
||||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
29
services/postgres.nix
Normal file
29
services/postgres.nix
Normal file
@ -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
Block a user