forked from CCCHH/nix-infra
Introduce colmena config and add shairport-sync host
This commit is contained in:
parent
10702979f1
commit
096f2ffa91
5 changed files with 68 additions and 2 deletions
26
flake.nix
26
flake.nix
|
@ -3,6 +3,8 @@
|
|||
|
||||
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 = {
|
||||
|
@ -11,7 +13,29 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, nixos-generators, ... }: {
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue