sql db
This commit is contained in:
parent
1c389114a1
commit
3b167273ee
|
@ -11,6 +11,9 @@
|
|||
./nvidia.nix
|
||||
../../profiles/desktop.nix
|
||||
../../services/podman.nix
|
||||
../../services/postgres.nix
|
||||
../../services/mysql.nix
|
||||
../../services/ollama.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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -14,6 +14,7 @@
|
|||
hostname = config.networking.hostName;
|
||||
in
|
||||
if hostname == "galadriel" then "cuda"
|
||||
else if hostname == "boromir" then "cuda"
|
||||
else if hostname == "aragorn" then "rocm"
|
||||
else null);
|
||||
|
||||
|
@ -26,4 +27,4 @@
|
|||
};
|
||||
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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