mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
made dummy option for deadnix to shutup about disko update flake.lock stopped using neovim overlay
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{config, ...}: {
|
|
boot = {
|
|
zfs = {
|
|
devNodes = "/dev/disk/by-id/";
|
|
forceImportAll = true;
|
|
};
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
kernelParams = ["nohibernate" "zfs.zfs_arc_max=17179869184"];
|
|
supportedFilesystems = ["zfs" "vfat"];
|
|
initrd = {
|
|
kernelModules = ["dm_mod"];
|
|
availableKernelModules = ["hid_generic"];
|
|
};
|
|
plymouth.enable = false;
|
|
loader = {
|
|
generationsDir.copyKernels = true;
|
|
|
|
#override defaults
|
|
systemd-boot.enable = false;
|
|
efi.canTouchEfiVariables = false;
|
|
|
|
grub = {
|
|
enable = true;
|
|
efiInstallAsRemovable = true;
|
|
copyKernels = true;
|
|
efiSupport = true;
|
|
zfsSupport = true;
|
|
mirroredBoots = [
|
|
{
|
|
path = "/boot/efis/nvme-SHPP41-500GM_SSB4N6719101A4N0E";
|
|
devices = ["/dev/disk/by-id/nvme-SHPP41-500GM_SSB4N6719101A4N0E"];
|
|
}
|
|
{
|
|
path = "/boot/efis/nvme-SHPP41-500GM_SSB4N6719101A4N22";
|
|
devices = ["/dev/disk/by-id/nvme-SHPP41-500GM_SSB4N6719101A4N22"];
|
|
}
|
|
];
|
|
splashImage = null;
|
|
extraConfig = ''
|
|
GRUB_TIMEOUT_STYLE=hidden
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
systemd.services.zfs-mount.enable = false;
|
|
services.zfs = {
|
|
autoScrub.enable = true;
|
|
trim.enable = true;
|
|
};
|
|
}
|