the_prg_server_configuration/flake.nix

87 lines
2.5 KiB
Nix

{
description = "PRG Server Infrastructure - NixOS Configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
};
outputs = inputs @ {
self,
nixpkgs,
nix-minecraft,
...
}: let
system = "x86_64-linux";
in {
nixosConfigurations = {
"nixos-local-wireguard-server" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/wireguard_server.nix];
};
"nixos-blank" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/blank_system_USE_THIS_AS_COPY.nix];
};
"nixos-songsheet" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/compose-songsheet.nix];
};
"nixos-compose-songsheet" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/compose-songsheet.nix];
};
"nixos-database" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/database.nix];
};
"nixos-forgejo" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/forgejo.nix];
};
"nixos-teamspeak" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/teamspeak.nix];
};
"nixos-traefik" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/traefik.nix];
};
"nixos-build-machine" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/build_machine.nix];
};
"nixos-logs" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/gramethus.nix];
};
"nixos-mail" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nix-system-configs/modules/system/mail-server.nix];
};
"nixos-minecraft" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
# Apply the overlay first so pkgs in later modules (like our local
# `minecraft.nix`) see the extra helpers provided by the overlay
{nixpkgs.overlays = [inputs.nix-minecraft.overlay];}
nix-minecraft.nixosModules.minecraft-servers
./nix-system-configs/modules/system/minecraft.nix
];
};
};
};
}