Make zfs and amdgpu modules available early in boot process

Also temporarily disable plymouth.
This commit is contained in:
Hoang Nguyen 2024-02-24 00:00:00 +07:00
parent e1892bedb3
commit 2d60495a40
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
3 changed files with 7 additions and 6 deletions

View File

@ -21,7 +21,7 @@
};
# Being fancy. Other people have already taken care of all the tough setting-up parts :)
boot.plymouth.enable = true;
# boot.plymouth.enable = true;
# Most valuable directories (.e.g /home, /gnu, /nix) are persisted using ZFS datasets.
# Impermanence is used to deal with state files.

View File

@ -1,15 +1,15 @@
{ config, ... }: {
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
boot.kernelModules = [ "kvm-amd" ];
boot.supportedFilesystems = [ "zfs" ];
boot.kernelParams = [ "amd_pstate=active" ];
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
# Use the systemd-boot EFI boot loader.
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot = {
enable = true;
consoleMode = "max";
};
boot.loader.systemd-boot.enable = true;
# Necessary ~~evils~~ binary blobs
# Ref: https://github.com/NixOS/nixos-hardware/tree/master/common/{cpu,gpu}/amd

View File

@ -27,6 +27,7 @@ in
gema = {
isNormalUser = true;
extraGroups = [ "networkmanager" ];
shell = pkgs.zsh;
hashedPasswordFile = secrets."users/gema/hashedPassword".path;