prepare for ZFS

This commit is contained in:
Christoph Cullmann 2024-05-29 21:07:09 +02:00
parent 5606603533
commit fc4607ec20
5 changed files with 27 additions and 47 deletions

View file

@ -17,10 +17,10 @@
# intel graphics
hardware.opengl.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
# our hostname
# our hostname and an ID for ZFS
networking.hostName = "neko";
networking.hostId = "cf5a5ee6";
# use NetworkManager
networking.useDHCP = false;
networking.networkmanager.enable = true;
# classic dhcpcd
networking.networkmanager.enable = false;
}

View file

@ -10,11 +10,6 @@
boot.initrd.kernelModules = [ "i915" ];
boot.kernelModules = [ "kvm-intel" ];
# use the right soundcard
boot.extraModprobeConfig = ''
options snd_hda_intel enable=0,1
'';
# don't check for split locks, for KVM and Co.
boot.kernelParams = [ "split_lock_detect=off" ];

View file

@ -21,6 +21,13 @@ nix --extra-experimental-features flakes --extra-experimental-features nix-comma
sudo dd if=result/iso/nixos-24.05.20240108.317484b-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync
# good ZFS links
https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/Root%20on%20ZFS.html
https://carjorvaz.com/posts/installing-nixos-with-root-on-tmpfs-and-encrypted-zfs-on-a-netcup-vps/
https://astrid.tech/2021/12/17/0/two-disk-encrypted-zfs/
https://mzhang.io/posts/2022-05-09-installing-nixos-on-encrypted-zfs/
#
# enable ssh for root
#