Attempt to make ZFS work with custom installer image
This commit is contained in:
parent
ca8ced077f
commit
4159652de2
1 changed files with 3 additions and 6 deletions
|
@ -33,12 +33,9 @@ in
|
|||
"${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix"
|
||||
];
|
||||
|
||||
# This block copied from https://github.com/nix-community/nixos-images
|
||||
boot.zfs.package = pkgs.zfsUnstable;
|
||||
services.udev.packages = [ zfs ]; # to hook zvol naming, etc.
|
||||
# unsure if need this, but in future udev rules could potentially point to systemd services.
|
||||
systemd.packages = [ zfs ];
|
||||
environment.defaultPackages = lib.mkForce [ zfs ]; # this merges with outer noninteractive module.
|
||||
# This block modified from https://github.com/nix-community/nixos-images
|
||||
boot.zfs.package = zfs;
|
||||
environment.defaultPackages = lib.mkForce [ zfs ];
|
||||
boot.kernelModules = [ "zfs" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ];
|
||||
boot.kernelPackages = lib.mkForce latestKernelPackage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue