nix-infra/flake.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

{
description = "CCCHH Nix Infrastructure";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Add nixos-generators as an input.
# See here: https://github.com/nix-community/nixos-generators#using-in-a-flake
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nixpkgs-unstable, nixos-generators, ... }: {
colmena = {
meta = {
nixpkgs = nixpkgs.legacyPackages."x86_64-linux";
nodeNixpkgs = {
audio = nixpkgs-unstable.legacyPackages."x86_64-linux";
};
};
audio = {
deployment = {
targetHost = "audio.z9.ccchh.net";
targetPort = 22;
targetUser = "chaos";
};
imports = [
./config/common
./config/proxmox-vm
./config/hosts/audio
];
};
};
packages.x86_64-linux = {
proxmox = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [
./config/nixos-generators/proxmox.nix
./config/common
./config/proxmox-vm
];
format = "proxmox";
};
};
};
}