diff --git a/nixos/boxes/airnix/README.md b/nixos/boxes/airnix/README.md index 201468d0..d02633f4 100644 --- a/nixos/boxes/airnix/README.md +++ b/nixos/boxes/airnix/README.md @@ -1,5 +1,6 @@ ## this is a VM on mac book air M1, so aarch64 +- VM needs 4GB RAM, 64GB disk space - boot from minimal nixos installer image > 604ad1abbcfdd93bc6258be695a7d289756921c0e6d9b4f3afb8e98c823052ec nixos-minimal-24.05.2780.53e81e790209-aarch64-linux.iso @@ -7,4 +8,4 @@ - launch in paralells - 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` diff --git a/nixos/boxes/airnix/boot.nix b/nixos/boxes/airnix/boot.nix index 19483e80..ff0478b9 100644 --- a/nixos/boxes/airnix/boot.nix +++ b/nixos/boxes/airnix/boot.nix @@ -7,5 +7,5 @@ }: { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; } diff --git a/nixos/boxes/airnix/default.nix b/nixos/boxes/airnix/default.nix index 2ee0a45a..e9d41935 100644 --- a/nixos/boxes/airnix/default.nix +++ b/nixos/boxes/airnix/default.nix @@ -13,6 +13,7 @@ ./disks.nix ]; networking.hostName = "airnix"; + networking.hostId = "92309ac5"; zramSwap = { enable = true; diff --git a/nixos/boxes/airnix/disks.nix b/nixos/boxes/airnix/disks.nix index ef85d323..835f14f3 100644 --- a/nixos/boxes/airnix/disks.nix +++ b/nixos/boxes/airnix/disks.nix @@ -30,7 +30,6 @@ zpool = { zroot = { type = "zpool"; - mode = "mirror"; rootFsOptions = { compression = "zstd"; };