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, self,
nixpkgs, nixpkgs,
disko, disko,
deploy-rs,
home-manager, home-manager,
... ...
} @ inputs: let } @ 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 { devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
git git

View file

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