diff options
| author | seth <[email protected]> | 2023-08-24 03:57:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-24 04:21:43 -0400 |
| commit | 0ead9592dc3b6b8ac19b74cdc4980eef15ed78c5 (patch) | |
| tree | 5e7b5974f97436130a9230c34f4ee2b3d2521198 /parts/lib/utils.nix | |
| parent | 7cbaaa0445e7c49818acf6a30c8bd8e0a62d21c6 (diff) | |
lib/mkProxy+mkVHosts: init
Diffstat (limited to 'parts/lib/utils.nix')
| -rw-r--r-- | parts/lib/utils.nix | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/parts/lib/utils.nix b/parts/lib/utils.nix deleted file mode 100644 index 7e3109f..0000000 --- a/parts/lib/utils.nix +++ /dev/null @@ -1,27 +0,0 @@ -{inputs, ...}: let - deployPkgs = pkgs: - import pkgs.path { - inherit (pkgs) system; - overlays = [ - inputs.deploy-rs.overlay - (_: prev: { - deploy-rs = { - inherit (pkgs) deploy-rs; - inherit (prev.deploy-rs) lib; - }; - }) - ]; - }; -in { - mkDeployNodes = builtins.mapAttrs (_: system: let - inherit (deployPkgs system.pkgs) deploy-rs; - type = - if system.pkgs.stdenv.isLinux - then "nixos" - else "darwin"; - in { - sshUser = "root"; - hostname = system.config.networking.hostName; - profiles.system.path = deploy-rs.lib.activate.${type} system; - }); -} |
