summaryrefslogtreecommitdiff
path: root/parts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'parts/lib')
-rw-r--r--parts/lib/utils/default.nix1
-rw-r--r--parts/lib/utils/deploy.nix29
2 files changed, 0 insertions, 30 deletions
diff --git a/parts/lib/utils/default.nix b/parts/lib/utils/default.nix
index cbb6eb9..ad91841 100644
--- a/parts/lib/utils/default.nix
+++ b/parts/lib/utils/default.nix
@@ -1,4 +1,3 @@
args: {
- deploy = import ./deploy.nix args;
nginx = import ./nginx.nix args;
}
diff --git a/parts/lib/utils/deploy.nix b/parts/lib/utils/deploy.nix
deleted file mode 100644
index 261af32..0000000
--- a/parts/lib/utils/deploy.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{inputs, ...}: let
- inherit (builtins) mapAttrs;
- inherit (inputs) deploy;
-in {
- mkDeployNodes = mapAttrs (_: system: let
- inherit (system) pkgs;
- deployPkgs = import pkgs.path {
- inherit (pkgs) system;
- overlays = [
- deploy.overlay
- (_: prev: {
- deploy-rs = {
- inherit (pkgs) deploy-rs;
- inherit (prev.deploy-rs) lib;
- };
- })
- ];
- };
-
- type =
- if pkgs.stdenv.isLinux
- then "nixos"
- else "darwin";
- in {
- sshUser = "root";
- hostname = system.config.networking.hostName;
- profiles.system.path = deployPkgs.deploy-rs.lib.activate.${type} system;
- });
-}