2024-01-03 10:53:53 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
# incorperate a space-optimized version of zfs
|
|
|
|
let
|
2024-08-16 10:34:39 +02:00
|
|
|
zfs = pkgs.zfsUnstable.override {
|
2024-01-03 10:53:53 +01:00
|
|
|
# this overrides saves 10MB
|
|
|
|
samba = pkgs.coreutils;
|
2024-09-24 21:53:37 +02:00
|
|
|
|
|
|
|
python3 = pkgs.python3Minimal;
|
2024-01-03 10:53:53 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
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.
|
|
|
|
|
|
|
|
boot.kernelModules = [ "zfs" ];
|
2024-08-16 10:34:39 +02:00
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ];
|
2024-01-03 10:53:53 +01:00
|
|
|
|
|
|
|
networking.hostId = lib.mkDefault "8425e349";
|
|
|
|
}
|