Nixos-anywhere: Difference between revisions
m link to disko page |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
[https://github.com/nix-community/nixos-anywhere nixos-anywhere] is a tool for installing NixOS to a remote machine. It uses kexec to boot into a temporary ram based NixOS system. From there, it can use a tool called | [https://github.com/nix-community/nixos-anywhere nixos-anywhere] is a tool for installing NixOS to a remote machine. It uses kexec to boot into a temporary ram based NixOS system. From there, it can use a tool called [[Disko]] to erase and repartition an entire disk, and install NixOS. | ||
More information can be found on the official documents. https://github.com/nix-community/nixos-anywhere | More information can be found on the official documents. https://github.com/nix-community/nixos-anywhere | ||
| Line 8: | Line 8: | ||
Fortunately, it is possible to install an msdos partition table in spite of the lack of support. With an msdos partition table, a bootable system can be made with only 1 partition, allowing utilization of all 100% disk space. Below is a simple example for installing a [[Btrfs]] root filesystem as the only partition on disk. If a swap partition is desired, it can be added after install, as Btrfs has support for live filesystem resizing. | Fortunately, it is possible to install an msdos partition table in spite of the lack of support. With an msdos partition table, a bootable system can be made with only 1 partition, allowing utilization of all 100% disk space. Below is a simple example for installing a [[Btrfs]] root filesystem as the only partition on disk. If a swap partition is desired, it can be added after install, as Btrfs has support for live filesystem resizing. | ||
< | <syntaxhighlight lang="nix"> | ||
# disk-config.nix | # disk-config.nix | ||
# Example to create a msdos partition | # Example to create a msdos partition | ||
| Line 39: | Line 39: | ||
}; | }; | ||
} | } | ||
</ | </syntaxhighlight> | ||
[[Category:Deployment]] | [[Category:Deployment]] | ||