fix: push everything

This commit is contained in:
Vivian 2021-10-17 12:38:16 +02:00
parent 1eccd56d57
commit fc3e0b9a7d
No known key found for this signature in database
GPG key ID: A3923C699D1A3BDA
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
description = "Delft Deployment";
inputs.deploy-rs.url = "github:serokell/deploy-rs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
outputs = { self, nixpkgs, deploy-rs }: {
nixosConfigurations.bastion = nixpkgs.lib.nixosSystem {
@ -9,6 +10,11 @@
modules = [ ./hosts/bastion/configuration.nix ];
};
nixosConfigurations.template = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./hosts/template/configuration.nix ];
};
deploy.nodes.bastion = {
hostname = "localhost";
fastConnection = true;
@ -18,6 +24,16 @@
};
};
deploy.nodes.template = {
sshUser = "root";
hostname = "10.42.42.5";
fastConnection = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.template;
};
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
};
}

View file

@ -31,6 +31,7 @@
# Additional packages
environment.systemPackages = with pkgs; [
vim
ripgrep
rsync
tmux