WIP: flake: add deploy-rs
Some checks are pending
ci/woodpecker/push/check Pipeline is pending

This commit is contained in:
Bruno BELANYI 2023-02-17 22:34:50 +00:00
parent e5c27d7aa8
commit 723bc90852
5 changed files with 92 additions and 2 deletions

View file

@ -11,6 +11,7 @@ flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./apps.nix
./checks.nix
./deploy-rs.nix
./dev-shells.nix
./home-manager.nix
./lib.nix

26
flake/deploy-rs.nix Normal file
View file

@ -0,0 +1,26 @@
{ self, inputs, ... }:
let
inherit (inputs)
deploy-rs
;
inherit (self) lib;
in
{
perSystem = { system, ... }: {
checks = deploy-rs.lib.${system}.deployChecks self.deploy;
};
flake = {
deploy = {
nodes = {
porthos = {
hostname = "belanyi.fr";
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.porthos;
};
};
};
};
};
}