2024-10-01 13:07:09 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
snf.url = "git+https://git.fediversity.eu/fediversity/simple-nixos-fediverse.git";
|
2024-10-01 13:56:15 +02:00
|
|
|
disko.url = "github:nix-community/disko";
|
2024-10-01 13:07:09 +02:00
|
|
|
};
|
|
|
|
|
2024-10-01 13:56:15 +02:00
|
|
|
outputs = { self, nixpkgs, snf, disko }:
|
2024-10-01 13:07:09 +02:00
|
|
|
let
|
2024-10-25 15:53:33 +02:00
|
|
|
vmName = "fedi01";
|
2024-10-01 13:07:09 +02:00
|
|
|
|
|
|
|
in {
|
|
|
|
nixosConfigurations.${vmName} = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./procolix-configuration.nix
|
|
|
|
./gitea-runner.nix
|
2024-10-01 13:56:15 +02:00
|
|
|
|
|
|
|
## Hardware configuration
|
|
|
|
disko.nixosModules.default
|
|
|
|
./hardware-configuration.nix
|
2024-10-01 13:07:09 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-10-01 13:56:15 +02:00
|
|
|
## An ISO that will prepare the machine, format it, and install the above
|
|
|
|
## configuration in an automated way.
|
2024-10-01 13:07:09 +02:00
|
|
|
isoInstallers.${vmName} = snf.mkInstaller nixpkgs self.nixosConfigurations.${vmName};
|
|
|
|
};
|
|
|
|
}
|