All checks were successful
Deploy Hashel / deploy (push) Successful in 5m52s
34 lines
882 B
Nix
34 lines
882 B
Nix
{
|
|
description = "Haschel Proxy Server";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, deploy-rs, ... }@inputs:
|
|
let
|
|
settings = import ./settings.nix;
|
|
system = "x86_64-linux";
|
|
in {
|
|
nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
];
|
|
};
|
|
|
|
deploy.nodes."${settings.hostname}" = {
|
|
hostname = "haschel";
|
|
sshUser = "root";
|
|
profiles.system = {
|
|
user = "root";
|
|
path = deploy-rs.lib.${system}.activate.nixos self.nixosConfigurations."${settings.hostname}";
|
|
};
|
|
};
|
|
|
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
|
};
|
|
}
|