summaryrefslogtreecommitdiff
path: root/lib/deploy.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-10 21:18:35 -0400
committerseth <[email protected]>2024-05-10 21:30:32 -0400
commit292a7d201f86d0af8b744896418208e975ba47a8 (patch)
tree6e7f78777db7881292b5ef2194e41dde048646d5 /lib/deploy.nix
parent1ec692c24c5b3345e6d7fe1445f2a51b1e322f03 (diff)
systems: deploy-rs -> nixinate for 12343894th time
Diffstat (limited to 'lib/deploy.nix')
-rw-r--r--lib/deploy.nix39
1 files changed, 0 insertions, 39 deletions
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);
-}