forked from Fediversity/Fediversity
33 lines
917 B
Nix
33 lines
917 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
snf.url = "git+https://git.fediversity.eu/fediversity/simple-nixos-fediverse.git";
|
|
disko.url = "github:nix-community/disko";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, snf, disko }:
|
|
let
|
|
vmName = "fedi01";
|
|
|
|
in {
|
|
nixosConfigurations.${vmName} = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
./procolix-configuration.nix
|
|
snf.nixosModules.fediversity
|
|
./fediversity-services.nix
|
|
# ./gitea-runner.nix
|
|
|
|
## Hardware configuration
|
|
disko.nixosModules.default
|
|
./hardware-configuration.nix
|
|
];
|
|
};
|
|
|
|
## An ISO that will prepare the machine, format it, and install the above
|
|
## configuration in an automated way.
|
|
isoInstallers.${vmName} = snf.mkInstaller nixpkgs self.nixosConfigurations.${vmName};
|
|
};
|
|
}
|