Created preliminary foundation of testing the nix systems by Flakes.

This commit is contained in:
Root User 2026-02-12 15:00:54 +01:00
parent dac2e0b8cf
commit 6a5e8a2dc5
Signed by: root
GPG key ID: 087F0A95E5766D72
12 changed files with 200 additions and 49 deletions

50
flake.nix Normal file
View file

@ -0,0 +1,50 @@
{
description = "PRG Server Infrastructure - NixOS Configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs, ... }:
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-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 ];
};
};
};
}