chore(flake): Added deploy-rs config for OVHCloud
This commit is contained in:
parent
12c5ebb13d
commit
fa927492aa
2 changed files with 21 additions and 1 deletions
14
flake.nix
14
flake.nix
|
@ -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
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue