switch to zfsUnstable
This commit is contained in:
parent
ae3cc85763
commit
077b2d2621
2 changed files with 4 additions and 19 deletions
|
@ -12,10 +12,8 @@
|
||||||
system.stateVersion = config.system.nixos.version;
|
system.stateVersion = config.system.nixos.version;
|
||||||
|
|
||||||
# use latest kernel we can support to get more hardware support
|
# use latest kernel we can support to get more hardware support
|
||||||
boot.kernelPackages =
|
boot.zfs.package = pkgs.zfsUnstable;
|
||||||
lib.mkDefault
|
boot.kernelPackages = lib.mkDefault pkgs.zfsUnstable.latestCompatibleLinuxPackages;
|
||||||
(pkgs.zfs.override { removeLinuxDRM = pkgs.hostPlatform.isAarch64; }).latestCompatibleLinuxPackages;
|
|
||||||
boot.zfs.removeLinuxDRM = lib.mkDefault pkgs.hostPlatform.isAarch64;
|
|
||||||
|
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
documentation.man.man-db.enable = false;
|
documentation.man.man-db.enable = false;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
# incorperate a space-optimized version of zfs
|
# incorperate a space-optimized version of zfs
|
||||||
let
|
let
|
||||||
zfs = pkgs.zfs.override {
|
zfs = pkgs.zfsUnstable.override {
|
||||||
# this overrides saves 10MB
|
# this overrides saves 10MB
|
||||||
samba = pkgs.coreutils;
|
samba = pkgs.coreutils;
|
||||||
};
|
};
|
||||||
|
@ -13,20 +13,7 @@ in
|
||||||
environment.defaultPackages = lib.mkForce [ zfs ]; # this merges with outer noninteractive module.
|
environment.defaultPackages = lib.mkForce [ zfs ]; # this merges with outer noninteractive module.
|
||||||
|
|
||||||
boot.kernelModules = [ "zfs" ];
|
boot.kernelModules = [ "zfs" ];
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ];
|
||||||
(config.boot.kernelPackages.zfs.override {
|
|
||||||
inherit (config.boot.zfs) removeLinuxDRM;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPatches = lib.optional (config.boot.zfs.removeLinuxDRM && pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
|
|
||||||
name = "export-neon-symbols-as-gpl";
|
|
||||||
patch = pkgs.fetchpatch {
|
|
||||||
url = "https://github.com/torvalds/linux/commit/aaeca98456431a8d9382ecf48ac4843e252c07b3.patch";
|
|
||||||
hash = "sha256-L2g4G1tlWPIi/QRckMuHDcdWBcKpObSWSRTvbHRIwIk=";
|
|
||||||
revert = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostId = lib.mkDefault "8425e349";
|
networking.hostId = lib.mkDefault "8425e349";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue