From 50672e10e87fa90f9ded5065aa4bc4ce0afaf730 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 25 Dec 2024 01:34:17 +0100 Subject: [WIP] Setup `deploy-rs` and add networking detection script --- flake.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a462584..a4ba578 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,9 @@ nixpkgs.follows = "nixpkgs"; }; }; + deploy-rs = { + url = "github:serokell/deploy-rs"; + }; # inputs for following systems = { @@ -84,6 +87,7 @@ nixpkgs-unstable, library, treefmt-nix, + deploy-rs, # modules simple-nixos-mailserver, impermanence, @@ -121,10 +125,13 @@ in { nixosConfigurations = hosts; - checks."${system}" = nixLib.warnMerge tests { - formatting = - treefmtEval.config.build.check self; - } "the flake checks"; + checks."${system}" = + nixLib.warnMerge (nixLib.warnMerge tests { + formatting = + treefmtEval.config.build.check self; + } "the flake checks and formatting") + (deploy-rs.lib."${system}".deployChecks self.deploy) + "the flake checks and deploy-rs"; packages."${system}" = vhackPackages; formatter."${system}" = treefmtEval.config.build.wrapper; @@ -135,12 +142,22 @@ # used for certificate generation in the taskserver setup gnutls + pkgs.deploy-rs + git-bug cocogitto - # ragenix.packages."${system}".default + ragenix.packages."${system}".default ]; }; }; + + deploy.nodes.server2 = { + hostname = "server2.vhack.eu"; + profiles.system = { + user = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.server2; + }; + }; }; } -- cgit 1.4.1