Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save daemonfire300/78227958c1055c40279381e5da82b924 to your computer and use it in GitHub Desktop.

Select an option

Save daemonfire300/78227958c1055c40279381e5da82b924 to your computer and use it in GitHub Desktop.
flake.nix
{
description = "Minimal NixOS VM install with disko";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
disko.url = "github:nix-community/disko/latest";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, disko, ... }: {
nixosConfigurations.vm-aarch64 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
disko.nixosModules.disko
./configuration.nix
];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment