8000 GitHub - ilyagr/nixos-lima: Create a NixOS Lima VM
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ilyagr/nixos-lima

 
 

Repository files navigation

NixOS Lima VM

Forked from kasuboski/nixos-lima, still mostly identical, slight modification in the user configuration and lima runtime.

How-to

  1. Build NixOS disk image from flake.
# aarch64-linux
nix build .#packages.aarch64-linux.image

# x86_64-linux
nix build .#packages.x86_64-linux.image
  1. Once finished, execute ./copy.sh which will copy the image from the nix store into ./img and chmod 644, and renames file to match reference in nixos.yaml.
./scripts/copy.sh
  1. Start Lima VM using configuration in nixos.yaml.
limactl start --name=nixos ./nixos.yaml
  1. Execute vm shell and nixos-rebuild from this flake's nixosConfiguration.
nixos-rebuild switch --use-remote-sudo --flake github:quinneden/nixos-lima-vm#nixosConfigurations.nixos

About

Create a NixOS Lima VM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 88.6%
  • Shell 11.4%
0