diff options
| author | seth <[email protected]> | 2023-12-29 06:37:22 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-29 06:51:49 -0500 |
| commit | 874a58f74dea0ee6aa775f43f688e8397bc8cfb5 (patch) | |
| tree | 1862d97828161591498d5cd56c213096b740b720 /systems/deploy.nix | |
| parent | ebba4504d2faa0fed6ca8b2201243b9786f68b92 (diff) | |
systems: nixinate works again
Diffstat (limited to 'systems/deploy.nix')
| -rw-r--r-- | systems/deploy.nix | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/systems/deploy.nix b/systems/deploy.nix deleted file mode 100644 index fbf20d3..0000000 --- a/systems/deploy.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ - lib, - inputs, - self, - ... -}: let - targets = ["atlas"]; - 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 { - flake.deploy = { - remoteBuild = true; - fastConnection = false; - nodes = lib.mapAttrs toDeployNode (lib.getAttrs targets configurations); - }; -} |
