Fix amdgpu not loading properly
Some checks are pending
Build NixOS Configurations / build (carbon) (push) Waiting to run
Build NixOS Configurations / build (git) (push) Waiting to run
Build NixOS Configurations / build (gospel) (push) Waiting to run
Build NixOS Configurations / build (node) (push) Waiting to run

Not sure which specific change fixed it but it's working now
This commit is contained in:
alejandro-angulo 2026-04-12 19:41:47 -07:00
parent 02abc1d0dc
commit ddc7e7c818
3 changed files with 45 additions and 26 deletions

View file

@ -25,6 +25,7 @@
agenix.inputs.darwin.follows = ""; agenix.inputs.darwin.follows = "";
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "git+https://git.alejandr0angul0.dev/alejandro-angulo/nixvim-config?ref=main"; nixvim.url = "git+https://git.alejandr0angul0.dev/alejandro-angulo/nixvim-config?ref=main";
# nixvim.inputs.nixpkgs.follows = "nixpkgs"; # nixvim.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,4 +1,9 @@
{ inputs, pkgs, lib, ... }: {
inputs,
pkgs,
lib,
...
}:
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
@ -25,7 +30,6 @@
hardware.audio.enable = true; hardware.audio.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.tlp.enable = true;
# system.zfs.enable = true; # system.zfs.enable = true;
apps.yubikey.enable = true; apps.yubikey.enable = true;
@ -38,6 +42,9 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
services.fwupd.enable = true;
virtualisation = { virtualisation = {
docker = { docker = {

View file

@ -1,31 +1,42 @@
# Do not modify this file! It was generated by nixos-generate-config {
# and may be overwritten by future invocations. Please make changes config,
# to /etc/nixos/configuration.nix instead. lib,
{ config, lib, pkgs, modulesPath, ... }: modulesPath,
...
}:
{ {
# imports = imports = [
# [ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
# ]; ];
#
# boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
# boot.initrd.kernelModules = [ ];
# boot.kernelModules = [ "kvm-amd" ];
# boot.extraModulePackages = [ ];
fileSystems."/" = boot.initrd.availableKernelModules = [
{ device = "UUID=00a14ad6-5635-4b54-b7e2-a35943639bb8"; "nvme"
fsType = "bcachefs"; "xhci_pci"
}; "thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/boot" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/66E9-291D"; device = "UUID=00a14ad6-5635-4b54-b7e2-a35943639bb8";
fsType = "vfat"; fsType = "bcachefs";
options = [ "fmask=0077" "dmask=0077" ]; };
};
swapDevices = [ {device = "/dev/disk/by-label/SWAP";} ]; fileSystems."/boot" = {
device = "/dev/disk/by-uuid/66E9-291D";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ];
# hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }