Deploy vault node
This commit is contained in:
parent
e2390de8de
commit
029c3d0dd4
2 changed files with 6 additions and 7 deletions
11
flake.nix
11
flake.nix
|
@ -10,9 +10,9 @@
|
||||||
modules = [ ./hosts/bastion/configuration.nix ];
|
modules = [ ./hosts/bastion/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations.template = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.vault = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
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 = {
|
deploy.nodes.bastion = {
|
||||||
|
@ -24,13 +24,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes.template = {
|
deploy.nodes.vault = {
|
||||||
sshUser = "root";
|
hostname = "10.42.42.6";
|
||||||
hostname = "10.42.42.5";
|
|
||||||
fastConnection = true;
|
fastConnection = true;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
networking.hostName = "nixos-template";
|
networking.hostName = "vault";
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
Loading…
Add table
Reference in a new issue