diff options
Diffstat (limited to 'nix/deployment/default.nix')
| -rw-r--r-- | nix/deployment/default.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/nix/deployment/default.nix b/nix/deployment/default.nix deleted file mode 100644 index 7fd379f..0000000 --- a/nix/deployment/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ - flake-parts-lib, - withSystem, - ... -}: { - imports = [./static.nix]; - - flake.nixosModules.default = flake-parts-lib.importApply ./module.nix { - inherit withSystem; - }; - - perSystem = { - lib, - pkgs, - self', - ... - }: let - containerFor = arch: - pkgs.dockerTools.buildLayeredImage { - name = "teawiebot"; - tag = "latest-${arch}"; - contents = [pkgs.dockerTools.caCertificates]; - config.Cmd = [ - (lib.getExe self'.packages."teawiebot-static-${arch}") - ]; - - architecture = withSystem "${arch}-linux" ({pkgs, ...}: pkgs.pkgsStatic.go.GOARCH); - }; - in { - packages = { - container-x86_64 = containerFor "x86_64"; - container-aarch64 = containerFor "aarch64"; - }; - }; -} |
