fix zfs boot on mac vm
This commit is contained in:
parent
f27adb15ff
commit
10ba27769a
4 changed files with 4 additions and 3 deletions
|
@ -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`
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
./disks.nix
|
||||
];
|
||||
networking.hostName = "airnix";
|
||||
networking.hostId = "92309ac5";
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
zpool = {
|
||||
zroot = {
|
||||
type = "zpool";
|
||||
mode = "mirror";
|
||||
rootFsOptions = {
|
||||
compression = "zstd";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue