clean up of the codebase
This commit is contained in:
1 parent
7822529a38
commit
0ac61b4ece
52 files changed
+2545
-2274
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "slackspawn: a Slack bot that runs goose agents in NixOS containers";
|
||||
description = "slackerbot: a Slack bot that runs goose agents in NixOS containers";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
@@ -7,13 +7,22 @@
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
agent = self.nixosConfigurations.agent.config.system.build.toplevel;
|
||||
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
|
||||
packages.${system} = {
|
||||
slackerbot = pkgs.buildGoModule {
|
||||
pname = "slackerbot";
|
||||
version = "0.1.0";
|
||||
src = ./slackerbot;
|
||||
vendorHash = "sha256-DFNUnPMsfcUHDlIxcxsDvuqjoHcp9EDTXWVy5t/oxEk=";
|
||||
# tests need network ports and ../config.example.toml
|
||||
doCheck = false;
|
||||
meta.mainProgram = "slackerbot";
|
||||
};
|
||||
default = self.packages.${system}.slackerbot;
|
||||
|
||||
inherit agent;
|
||||
};
|
||||
|
||||
nixosConfigurations.agent = nixpkgs.lib.nixosSystem {
|
||||
@@ -22,5 +31,18 @@
|
||||
};
|
||||
|
||||
nixosModules.host = import ./nix/host.nix self;
|
||||
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
inputsFrom = [ self.packages.${system}.slackerbot ];
|
||||
packages = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
gotools
|
||||
go-tools
|
||||
delve
|
||||
btrfs-progs
|
||||
nixpkgs-fmt
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user