fix: push everything
This commit is contained in:
parent
1eccd56d57
commit
fc3e0b9a7d
16
flake.nix
16
flake.nix
|
@ -2,6 +2,7 @@
|
||||||
description = "Delft Deployment";
|
description = "Delft Deployment";
|
||||||
|
|
||||||
inputs.deploy-rs.url = "github:serokell/deploy-rs";
|
inputs.deploy-rs.url = "github:serokell/deploy-rs";
|
||||||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, deploy-rs }: {
|
outputs = { self, nixpkgs, deploy-rs }: {
|
||||||
nixosConfigurations.bastion = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.bastion = nixpkgs.lib.nixosSystem {
|
||||||
|
@ -9,6 +10,11 @@
|
||||||
modules = [ ./hosts/bastion/configuration.nix ];
|
modules = [ ./hosts/bastion/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosConfigurations.template = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [ ./hosts/template/configuration.nix ];
|
||||||
|
};
|
||||||
|
|
||||||
deploy.nodes.bastion = {
|
deploy.nodes.bastion = {
|
||||||
hostname = "localhost";
|
hostname = "localhost";
|
||||||
fastConnection = true;
|
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;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
# Additional packages
|
# Additional packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
tmux
|
tmux
|
||||||
|
|
Loading…
Reference in a new issue