diff --git a/ubuntu-server/.config/nix/flake.lock b/ubuntu-server/.config/nix/flake.lock index d5681f40..5d412794 100644 --- a/ubuntu-server/.config/nix/flake.lock +++ b/ubuntu-server/.config/nix/flake.lock @@ -1,12 +1,25 @@ { "nodes": { + "multica-bin": { + "flake": false, + "locked": { + "lastModified": 1776856195, + "narHash": "sha256-AoLAujg5sifTo76woETf9a39gdjJzM9LrYRQO4A5Li4=", + "type": "tarball", + "url": "https://github.com/multica-ai/multica/releases/latest/download/multica_linux_amd64.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/multica-ai/multica/releases/latest/download/multica_linux_amd64.tar.gz" + } + }, "nixpkgs": { "locked": { - "lastModified": 1770843696, - "narHash": "sha256-LovWTGDwXhkfCOmbgLVA10bvsi/P8eDDpRudgk68HA8=", + "lastModified": 1771177547, + "narHash": "sha256-trTtk3WTOHz7hSw89xIIvahkgoFJYQ0G43IlqprFoMA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2343bbb58f99267223bc2aac4fc9ea301a155a16", + "rev": "ac055f38c798b0d87695240c7b761b82fc7e5bc2", "type": "github" }, "original": { @@ -18,6 +31,7 @@ }, "root": { "inputs": { + "multica-bin": "multica-bin", "nixpkgs": "nixpkgs" } } diff --git a/ubuntu-server/.config/nix/flake.nix b/ubuntu-server/.config/nix/flake.nix index 9bfba7d5..4d31a611 100644 --- a/ubuntu-server/.config/nix/flake.nix +++ b/ubuntu-server/.config/nix/flake.nix @@ -2,13 +2,36 @@ description = "Package set for my Ubuntu server"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs.multica-bin = { + url = "https://github.com/multica-ai/multica/releases/latest/download/multica_linux_amd64.tar.gz"; + flake = false; + }; - outputs = { self, nixpkgs }: + outputs = { self, nixpkgs, multica-bin }: let # Your server's architecture. Change if you're not x86_64. system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; + multica = pkgs.stdenv.mkDerivation { + pname = "multica"; + version = "latest"; + src = multica-bin; + nativeBuildInputs = [ pkgs.autoPatchelfHook ]; + buildInputs = [ pkgs.stdenv.cc.cc.lib ]; + dontConfigure = true; + dontBuild = true; + installPhase = '' + runHook preInstall + install -Dm755 multica $out/bin/multica + runHook postInstall + ''; + meta = { + description = "Multica CLI — managed agents platform"; + homepage = "https://github.com/multica-ai/multica"; + }; + }; + tsshd = pkgs.buildGoModule rec { pname = "tsshd"; version = "0.1.6"; @@ -70,6 +93,7 @@ zoxide zsh tsshd + multica ]; }; };