diff options
Diffstat (limited to 'systems/deploy.nix')
| -rw-r--r-- | systems/deploy.nix | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/systems/deploy.nix b/systems/deploy.nix deleted file mode 100644 index 186ff37..0000000 --- a/systems/deploy.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - lib, - inputs, - self, - ... -}: let - targets = ["atlas"]; - - getDeploy = pkgs: - (import pkgs.path { - inherit (pkgs) system; - overlays = [ - inputs.deploy.overlay - (_: prev: { - deploy-rs = { - inherit (pkgs) deploy-rs; - inherit (prev.deploy-rs) lib; - }; - }) - ]; - }) - .deploy-rs; - - getType = pkgs: - if pkgs.stdenv.isDarwin - then "darwin" - else "nixos"; - - toDeployNode = hostname: system: { - sshUser = "root"; - inherit hostname; - profiles.system.path = (getDeploy system.pkgs).lib.activate.${getType system.pkgs} system; - }; -in { - flake.deploy = { - remoteBuild = true; - fastConnection = false; - nodes = lib.pipe (self.nixosConfigurations // self.darwinConfigurations) [ - (lib.getAttrs targets) - (lib.mapAttrs toDeployNode) - ]; - }; -} |
