summaryrefslogtreecommitdiff
path: root/systems/deploy.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-14 23:21:10 -0500
committerseth <[email protected]>2023-11-15 01:54:45 -0500
commit6cce6f2211910a668976442cf66608b4fb780611 (patch)
treef0d7b43773114cbabca1280f0626eb0d5a29e4b6 /systems/deploy.nix
parentb450cfc9937966ffca2fa71a63ddca8be6af8ae1 (diff)
Revert "systems: nixinate -> deploy-rs (again)"
This reverts commit f281097023293a482498412d3760f350663b7314. Revert "ci: fix typo in deploy nix develop command" This reverts commit 2f15e8997f3086a1dc0fc6f472b46aaee11c98bf.
Diffstat (limited to 'systems/deploy.nix')
-rw-r--r--systems/deploy.nix43
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)
- ];
- };
-}