nixos noninteractive: re-add missing filesystems

This commit is contained in:
Jörg Thalheim 2023-06-11 06:48:02 +02:00
parent e252d40dab
commit a7f73290d5

View file

@ -9,10 +9,10 @@
];
# among others, this prevents carrying a stdenv with gcc in the image
system.extraDependencies = lib.mkForce [];
system.extraDependencies = lib.mkForce [ ];
# prevents shipping nixpkgs, unnecessary if system is evaluated externally
nix.registry = lib.mkForce {};
nix.registry = lib.mkForce { };
# would pull in nano
programs.nano.syntaxHighlight = lib.mkForce false;
@ -21,15 +21,35 @@
environment.defaultPackages = lib.mkForce [
pkgs.rsync
pkgs.parted
pkgs.zfs
(pkgs.zfs.override {
# this overrides saves 10MB
samba = pkgs.coreutils;
})
];
# zfs support is accidentally disabled by excluding base.nix, re-enable it
# we are missing this from base.nix
boot.supportedFilesystems = [
"btrfs"
# probably not needed but does not seem to increase closure size
"cifs"
"f2fs"
## anyone still using this over ext4?
#"jfs"
"ntfs"
## no longer seems to be maintained, anyone still using it?
#"reiserfs"
"vfat"
"xfs"
];
boot = {
kernelModules = [ "zfs" ];
extraModulePackages = [ config.boot.kernelPackages.zfs ];
extraModulePackages = [
config.boot.kernelPackages.zfs
];
};
networking.hostId = lib.mkDefault "8425e349";
# we can drop this after 23.05 has been released, which has this set by default
hardware.enableRedistributableFirmware = lib.mkForce false;
}