flake: add deploy target for tien

This commit is contained in:
Johannes Rothe 2024-12-22 23:11:45 +01:00
parent ed573a2b12
commit e8e186a6f3
Signed by: onjen
GPG Key ID: 73F092605AF3286C

View File

@ -3,6 +3,8 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
deploy-rs.url = "github:serokell/deploy-rs";
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.11";
@ -21,7 +23,7 @@
};
};
outputs = { self, nixpkgs, home-manager, disko, nixvim, ...}:
outputs = { self, nixpkgs, home-manager, deploy-rs, disko, nixvim, ...}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@ -77,5 +79,16 @@
};
};
};
deploy.nodes.tien = let
hostname = "tien";
in {
hostname = hostname;
profiles.system = {
sshUser = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.${hostname};
};
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
};
}