diff --git a/machines/boromir/configuration.nix b/machines/boromir/configuration.nix index 92eda6d..042dd94 100644 --- a/machines/boromir/configuration.nix +++ b/machines/boromir/configuration.nix @@ -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. 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/ollama.nix b/services/ollama.nix index a55de00..deab254 100644 --- a/services/ollama.nix +++ b/services/ollama.nix @@ -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; }; -} \ No newline at end of file +} 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]; + + }; + + + + +}