vm and op5p: add bcachefs

This commit is contained in:
Motiejus Jakštys 2024-03-06 12:48:27 +02:00
parent 3f7c097634
commit 7ad3e26401
3 changed files with 13 additions and 5 deletions

View File

@ -16,6 +16,8 @@
}; };
}; };
boot.supportedFilesystems = ["bcachefs"];
security.sudo = { security.sudo = {
enable = true; enable = true;
wheelNeedsPassword = false; wheelNeedsPassword = false;

View File

@ -20,7 +20,10 @@
}; };
}; };
boot.loader.systemd-boot.enable = true; boot = {
loader.systemd-boot.enable = true;
supportedFilesystems = ["bcachefs"];
};
isoImage = { isoImage = {
isoName = "toolshed-${self.lastModifiedDate}.iso"; isoName = "toolshed-${self.lastModifiedDate}.iso";

View File

@ -35,11 +35,14 @@ in {
}; };
config = { config = {
# https://github.com/NixOS/nixpkgs/issues/83694#issuecomment-605657381 boot = {
boot.kernel.sysctl."kernel.sysrq" = "438"; # https://github.com/NixOS/nixpkgs/issues/83694#issuecomment-605657381
nixpkgs.config.allowUnfree = true; kernel.sysctl."kernel.sysrq" = "438";
boot.kernelPackages = lib.mkDefault pkgs.zfs.latestCompatibleLinuxPackages; kernelPackages = lib.mkDefault pkgs.zfs.latestCompatibleLinuxPackages;
};
nixpkgs.config.allowUnfree = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;