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 = "";
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.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,4 +1,9 @@
{ inputs, pkgs, lib, ... }:
{
inputs,
pkgs,
lib,
...
}:
{
imports = [
# Include the results of the hardware scan.
@ -25,7 +30,6 @@
hardware.audio.enable = true;
hardware.bluetooth.enable = true;
hardware.tlp.enable = true;
# system.zfs.enable = true;
apps.yubikey.enable = true;
@ -38,6 +42,9 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
services.fwupd.enable = true;
virtualisation = {
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
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
modulesPath,
...
}:
{
# imports =
# [ (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 = [ ];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
fileSystems."/" =
{ device = "UUID=00a14ad6-5635-4b54-b7e2-a35943639bb8";
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "UUID=00a14ad6-5635-4b54-b7e2-a35943639bb8";
fsType = "bcachefs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/66E9-291D";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/66E9-291D";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ];
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
# 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;
}