From fcab202c3838ca9b7f025c6208d4be5eed96ce28 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 27 Dec 2024 05:12:28 -0800 Subject: [PATCH] flake: deploy to virtmsi --- flake.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c1577e6..5a97795 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ }; outputs = - { self, nixpkgs, ... }@inputs: + { self, nixpkgs, deploy-rs, ... }@inputs: let builders = import ./builders.nix inputs; in @@ -42,6 +42,19 @@ { user = "ravenshade"; hostname = "virtmsi"; } ]; + deploy = + let homeConfigPath = username: deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations.${username}; + in { + sshUser = "ravenshade"; + nodes = { + virtmsi = { + hostname = "virtmsi"; + profiles.home.path = homeConfigPath "ravenshade@virtmsi"; + fastConnection = true; + }; + }; + }; + overlays.default = import ./pkgs; }; }