summaryrefslogtreecommitdiff
path: root/parts/deployment.nix
blob: 3620d84a0dce1aa354e3dcd4509dd651c278b930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{self, ...}: {
  perSystem = {
    lib,
    pkgs,
    system,
    ...
  }: {
    packages = {
      container = pkgs.dockerTools.buildLayeredImage {
        name = "teawiebot";
        tag = "latest";
        contents = [pkgs.dockerTools.caCertificates];
        config.Cmd = [(lib.getExe self.packages.${system}.teawiebot-smol)];
      };
    };
  };

  flake.nixosModules.default = import ./module.nix self;
}