initial commit
This commit is contained in:
commit
726218542a
7 changed files with 537 additions and 0 deletions
30
flake.nix
Normal file
30
flake.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
nixos = path: nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit system inputs; };
|
||||
modules = [
|
||||
"${nixpkgs}/nixos/modules/virtualisation/proxmox-image.nix"
|
||||
{ nixpkgs.hostPlatform = "${system}"; }
|
||||
path
|
||||
];
|
||||
};
|
||||
image = name: self.nixosConfigurations.${name}.config.system.build.VMA;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
majcraft = nixos ./vm-majcraft.nix;
|
||||
homelab = nixos ./vm-homelab.nix;
|
||||
};
|
||||
|
||||
packages.${system} = {
|
||||
majcraft = image "majcraft";
|
||||
homelab = image "homelab";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue