From 029c3d0dd4fcc4e77dffb64e76eaad2bb767728c Mon Sep 17 00:00:00 2001 From: Vivian Roest Date: Sun, 17 Oct 2021 15:14:53 +0200 Subject: [PATCH] Deploy vault node --- flake.nix | 11 +++++------ hosts/{template => vault}/configuration.nix | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) rename hosts/{template => vault}/configuration.nix (95%) diff --git a/flake.nix b/flake.nix index 00c31f48..c2dbebd2 100644 --- a/flake.nix +++ b/flake.nix @@ -10,9 +10,9 @@ modules = [ ./hosts/bastion/configuration.nix ]; }; - nixosConfigurations.template = nixpkgs.lib.nixosSystem { + nixosConfigurations.vault = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - modules = [ "${nixpkgs}/nixos/modules/virtualisation/lxc-container.nix" ./hosts/template/configuration.nix ]; + modules = [ "${nixpkgs}/nixos/modules/virtualisation/lxc-container.nix" ./hosts/vault/configuration.nix ]; }; deploy.nodes.bastion = { @@ -24,13 +24,12 @@ }; }; - deploy.nodes.template = { - sshUser = "root"; - hostname = "10.42.42.5"; + deploy.nodes.vault = { + hostname = "10.42.42.6"; fastConnection = true; profiles.system = { user = "root"; - path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.template; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.vault; }; }; diff --git a/hosts/template/configuration.nix b/hosts/vault/configuration.nix similarity index 95% rename from hosts/template/configuration.nix rename to hosts/vault/configuration.nix index 1cf5e76e..61949b08 100644 --- a/hosts/template/configuration.nix +++ b/hosts/vault/configuration.nix @@ -13,7 +13,7 @@ ]; - networking.hostName = "nixos-template"; + networking.hostName = "vault"; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions