diff --git a/deployments.nix b/deployments.nix new file mode 100644 index 0000000..82ef6bd --- /dev/null +++ b/deployments.nix @@ -0,0 +1,41 @@ +{ deploy, self }: +{ + charmander = { + hostname = "10.0.0.61"; + profiles.system = { + user = "root"; + sshUser = "lunarix"; + sshOpts = [ "-t" ]; + magicRollback = false; + path = + deploy.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.charmander; + }; + }; + + coggie = { + hostname = "10.0.0.245"; + profiles.system = { + user = "root"; + sshUser = "lunarix"; + sshOpts = [ "-t" ]; + magicRollback = false; + path = + deploy.lib.aarch64-linux.activate.nixos + self.nixosConfigurations.coggie; + }; + }; + + cardinal = { + hostname = "172.245.82.235"; + profiles.system = { + user = "root"; + sshUser = "lunarix"; + sshOpts = [ "-t" ]; + magicRollback = false; + path = + deploy.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.cardinal; + }; + }; +} diff --git a/flake.nix b/flake.nix index 04f6383..df3bb6b 100644 --- a/flake.nix +++ b/flake.nix @@ -105,6 +105,11 @@ rec { }; nixosConfigurations = import ./machines inputs; + + deploy.nodes = import ./deployments.nix { + inherit self; + inherit (inputs) deploy; + }; }; }; }