From e12f7a2ce87af16195c9722cee1dc6635cfd3a80 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 12 Jan 2023 21:27:27 +0000 Subject: [PATCH] feat: as far as I can tell this is the config needed for deploy-rs --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 71f9b16..6ef3ab0 100644 --- a/flake.nix +++ b/flake.nix @@ -17,13 +17,16 @@ nixosConfigurations.some-random-system = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - #./some-random-system/configuration.nix + ./machines/base.nix ]; }; - deploy.nodes.some-random-system.profiles.system = { - user = "root"; + deploy.nodes.example = { + hostname = "192.168.1.157"; + profiles.system = { path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system; + user = "root"; + }; }; # This is highly advised, and will prevent many possible mistakes