From 292a7d201f86d0af8b744896418208e975ba47a8 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 10 May 2024 21:18:35 -0400 Subject: systems: deploy-rs -> nixinate for 12343894th time --- lib/deploy.nix | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 lib/deploy.nix (limited to 'lib/deploy.nix') diff --git a/lib/deploy.nix b/lib/deploy.nix deleted file mode 100644 index fa15dc6..0000000 --- a/lib/deploy.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - lib, - inputs, - ... -}: let - inherit (inputs) self; - configurations = self.nixosConfigurations // self.darwinConfigurations; - - getDeploy = pkgs: - (pkgs.appendOverlays [ - inputs.deploy.overlay - (_: prev: { - deploy-rs = { - inherit (pkgs) deploy-rs; - inherit (prev.deploy-rs) lib; - }; - }) - ]) - .deploy-rs; - - toType = system: - { - "Linux" = "nixos"; - "Darwin" = "darwin"; - } - .${system}; - - toDeployNode = hostname: system: { - sshUser = "root"; - inherit hostname; - profiles.system.path = let - deploy = getDeploy system.pkgs; - type = toType system.pkgs.stdenv.hostPlatform.uname.system; - in - deploy.lib.activate.${type} system; - }; -in { - mapNodes = targets: lib.mapAttrs toDeployNode (lib.getAttrs targets configurations); -} -- cgit v1.2.3