flake.nix
1 # SPDX-FileCopyrightText: 2020 Serokell <https://serokell.io/> 2 # 3 # SPDX-License-Identifier: MPL-2.0 4 5 { 6 description = "Deploy GNU hello to localhost"; 7 8 inputs.deploy-rs.url = "github:serokell/deploy-rs"; 9 10 outputs = { self, nixpkgs, deploy-rs }: { 11 deploy.nodes.example = { 12 hostname = "localhost"; 13 profiles.hello = { 14 user = "balsoft"; 15 path = deploy-rs.lib.x86_64-linux.setActivate nixpkgs.legacyPackages.x86_64-linux.hello "./bin/hello"; 16 }; 17 }; 18 19 checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib; 20 }; 21 }