From 1649a28e26e57adef07090bf4d865ba780305afc Mon Sep 17 00:00:00 2001 From: William Date: Sat, 15 Jul 2023 10:43:50 -0300 Subject: [PATCH] resctructure deploy profiles --- flake.nix | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 7d0f432..c70e2e2 100644 --- a/flake.nix +++ b/flake.nix @@ -124,17 +124,26 @@ }; deploy = { - autoRollback = false; - magicRollback = false; - user = "root"; - sshUser = "root"; + autoRollback = true; + magicRollback = true; + profilesOrder = [ "system" "user" ]; nodes = { alexandria = { hostname = "alexandria"; - profiles.system = { - remoteBuild = true; - path = deploy-rs.lib.x86_64-linux.activate.nixos - self.nixosConfigurations.alexandria; + profiles = { + system = { + user = "root"; + sshUser = "root"; + remoteBuild = true; + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.alexandria; + }; + user = { + user = "user"; + remoteBuild = true; + path = deploy-rs.lib.x86_64-linux.activate.home-manager + self.homeConfigurations.server; + }; }; }; };