From f978c07d021c82915b6dcdf70314c0c25402a7c9 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 19 Jun 2024 02:28:19 -0500 Subject: [PATCH] Added cachix deploy json config --- flake.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1c32799..1996f44 100644 --- a/flake.nix +++ b/flake.nix @@ -74,6 +74,7 @@ ]; in { + # NixOS configurations for manual deployment nixosConfigurations = { "fj-hetzner-aarch64-01" = lib.nixosSystem { @@ -88,7 +89,7 @@ modules = [ x86_64-linux-modules ]; }; }; - + # Cachix deploy for automated deployments packages.aarch64-linux.default = let inherit (common "aarch64-linux") cachix-deploy-lib pkgs; @@ -105,6 +106,30 @@ imports = x86_64-linux-modules; }; + deploy-json = + let + inherit (common "aarch64-linux") cachix-deploy-lib; + in + cachix-deploy-lib.spec + { + agents = { + "fj-hetzner-aarch64-01" = + let + inherit (common "aarch64-linux") cachix-deploy-lib pkgs; + in + cachix-deploy-lib.nixos { + # system = "aarch64-linux"; + imports = aarch64-linux-modules; + }; + "fj-shadowfax-01" = + let + inherit (common "x86_64-linux") cachix-deploy-lib pkgs; + in + cachix-deploy-lib.nixos { + imports = x86_64-linux-modules; + }; + }; + }; # Convenience output that aggregates the outputs for home, nixos. # Also used in ci to build targets generally. top =