chore(flake): Added deploy-rs config for OVHCloud

This commit is contained in:
GaspardCulis 2024-09-23 17:27:19 +02:00
parent 12c5ebb13d
commit fa927492aa
2 changed files with 21 additions and 1 deletions

View file

@ -37,6 +37,7 @@
self,
nixpkgs,
disko,
deploy-rs,
home-manager,
...
} @ inputs: let
@ -82,6 +83,19 @@
};
};
deploy.nodes.OVHCloud = {
hostname = "gasdev.fr";
profiles.system = {
user = "root";
sshUser = "root";
sshOpts = ["-p" "22"];
sudo = "";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.OVHCloud;
};
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
git

View file

@ -1,4 +1,10 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
imports = [
./hardware-configuration.nix
];