From f7c217b26c87ea402e9e5506ccafef3ccd4ba5fd Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 12 Apr 2025 12:32:57 +0200 Subject: [PATCH 1/2] hosts: set system.stateVersion to 24.11 Yes, I read all changes that it would do using nix-diff --- hosts/main/default.nix | 2 +- hosts/tablet.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/main/default.nix b/hosts/main/default.nix index ed2ae20..dd1458a 100644 --- a/hosts/main/default.nix +++ b/hosts/main/default.nix @@ -87,6 +87,6 @@ nixpkgs.hostPlatform = "x86_64-linux"; - system.stateVersion = "23.05"; + system.stateVersion = "24.11"; }; } diff --git a/hosts/tablet.nix b/hosts/tablet.nix index 7343cda..12b4780 100644 --- a/hosts/tablet.nix +++ b/hosts/tablet.nix @@ -54,7 +54,7 @@ nixpkgs.hostPlatform = "x86_64-linux"; - system.stateVersion = "23.11"; + system.stateVersion = "24.11"; }; } From d5922109aeedd8d8a81d81fe16f4a8202040cf7e Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 12 Apr 2025 12:43:31 +0200 Subject: [PATCH 2/2] hosts/main: enable mariadb --- hosts/main/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/main/default.nix b/hosts/main/default.nix index dd1458a..486c359 100644 --- a/hosts/main/default.nix +++ b/hosts/main/default.nix @@ -81,6 +81,12 @@ package = pkgs.unstable.ollama; host = "0.0.0.0"; }; + + services.mysql = { + enable = true; + package = pkgs.mariadb; + }; + environment.sessionVariables = { OLLAMA_HOST = "127.0.0.1:${builtins.toString config.services.ollama.port}"; };