fix zfs boot on mac vm

This commit is contained in:
Cyryl Płotnicki 2024-07-17 10:33:05 +01:00
parent f27adb15ff
commit 10ba27769a
4 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
## this is a VM on mac book air M1, so aarch64 ## this is a VM on mac book air M1, so aarch64
- VM needs 4GB RAM, 64GB disk space
- boot from minimal nixos installer image - boot from minimal nixos installer image
> 604ad1abbcfdd93bc6258be695a7d289756921c0e6d9b4f3afb8e98c823052ec nixos-minimal-24.05.2780.53e81e790209-aarch64-linux.iso > 604ad1abbcfdd93bc6258be695a7d289756921c0e6d9b4f3afb8e98c823052ec nixos-minimal-24.05.2780.53e81e790209-aarch64-linux.iso
@ -7,4 +8,4 @@
- launch in paralells - launch in paralells
- change root password - change root password
- From macbook host `nix run github:numtide/nixos-anywhere -- root@IP --flake '.#airnix'` - From macbook host `nix run github:numtide/nixos-anywhere -- root@10.211.55.6 --flake '.#airnix' --build-on-remote`

View file

@ -7,5 +7,5 @@
}: { }: {
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
} }

View file

@ -13,6 +13,7 @@
./disks.nix ./disks.nix
]; ];
networking.hostName = "airnix"; networking.hostName = "airnix";
networking.hostId = "92309ac5";
zramSwap = { zramSwap = {
enable = true; enable = true;

View file

@ -30,7 +30,6 @@
zpool = { zpool = {
zroot = { zroot = {
type = "zpool"; type = "zpool";
mode = "mirror";
rootFsOptions = { rootFsOptions = {
compression = "zstd"; compression = "zstd";
}; };