diff --git a/machines/boromir/configuration.nix b/machines/boromir/configuration.nix index 92eda6d..e708c6b 100644 --- a/machines/boromir/configuration.nix +++ b/machines/boromir/configuration.nix @@ -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. diff --git a/services/mysql.nix b/services/mysql.nix new file mode 100644 index 0000000..fb7e5f0 --- /dev/null +++ b/services/mysql.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: +{ + + + environment.systemPackages = with pkgs; [ + mariadb + mysql-workbench + jetbrains.datagrip + ]; + +services.mysql = { + enable = true; + package = pkgs.mariadb; +}; + + + + +} diff --git a/services/postgres.nix b/services/postgres.nix new file mode 100644 index 0000000..7862142 --- /dev/null +++ b/services/postgres.nix @@ -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]; + + }; + + + + +}