2024-12-27 00:17:49 -08:00
|
|
|
{
|
2024-12-27 00:56:59 -08:00
|
|
|
description = "permafrost";
|
2024-12-27 00:17:49 -08:00
|
|
|
|
|
|
|
inputs = {
|
2024-12-27 01:00:45 -08:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
2024-12-27 00:23:27 -08:00
|
|
|
|
2024-12-27 04:40:39 -08:00
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
|
|
|
|
|
|
nyazoom.url = "git+https://git.zynh.me/Zynh0722/nyazoom.git";
|
2024-12-27 00:17:49 -08:00
|
|
|
};
|
|
|
|
|
2024-12-27 04:40:39 -08:00
|
|
|
outputs = inputs@{ nixpkgs, self, deploy-rs, ... }: {
|
2024-12-27 00:17:49 -08:00
|
|
|
nixosConfigurations = {
|
|
|
|
virtmsi = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs self; };
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-12-27 04:40:39 -08:00
|
|
|
|
|
|
|
deploy.nodes.virtmsi = {
|
|
|
|
sshUser = "ravenshade";
|
|
|
|
user = "root";
|
|
|
|
hostname = "virtmsi";
|
|
|
|
sshOpts = [ "-A" ];
|
|
|
|
profiles.system.path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.virtmsi;
|
|
|
|
fastConnection = true;
|
|
|
|
interactiveSudo = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
2024-12-27 00:17:49 -08:00
|
|
|
};
|
|
|
|
}
|