Files
slacker-bot/flake.nix
T
2026-11-01 11:47:41 -05:00

27 lines
711 B
Nix

{
description = "slackspawn: a Slack bot that runs goose agents in NixOS containers";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.${system}.default = pkgs.buildGoModule {
pname = "slackspawn";
version = "0.1.0";
src = ./.;
vendorHash = pkgs.lib.fakeHash; # replace with the hash the first build prints
};
nixosConfigurations.agent = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./nix/container.nix ];
};
nixosModules.host = import ./nix/host.nix self;
};
}