Refactoring, added amdgpu to initrd modules

This commit is contained in:
2025-06-24 12:48:07 -04:00
parent f4dd67085e
commit 1969fd1e14
5 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,2 +1 @@
smb-secrets
nixos-switch.log

View File

@@ -7,6 +7,7 @@
imports = [
./hardware-configuration.nix
../../nixos/desktop.nix
../../nixos/plasma.nix
../../nixos/hypr.nix
];
@@ -19,6 +20,8 @@
];
};
services.xserver.videoDrivers = [ "amdgpu" ];
# Mount SMB share
fileSystems."/mnt/share" = {
device = "//haruko/share";
@@ -27,7 +30,6 @@
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,users";
credentials = "${config.sops.templates."smb-credentials".path}";
in ["${automount_opts},credentials=${credentials},uid=1000,gid=100"];
#in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"];
};
boot.loader.systemd-boot.enable = lib.mkForce false;
@@ -36,5 +38,6 @@
enable = true;
pkiBundle = "/var/lib/sbctl";
};
system.stateVersion = "24.11";
}

View File

@@ -20,7 +20,7 @@
boot.initrd.luks.devices."luks-9527937d-2d02-4feb-9a16-c9c417b33d0d".device = "/dev/disk/by-uuid/9527937d-2d02-4feb-9a16-c9c417b33d0d";
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.initrd.kernelModules = ["amdgpu"];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];

View File

@@ -19,6 +19,8 @@
];
};
services.xserver.videoDrivers = [ "amdgpu" ];
# Mount SMB share
fileSystems."/mnt/share" = {
device = "//haruko/share";

View File

@@ -19,7 +19,7 @@
boot.initrd.luks.devices."luks-877310a4-b495-4060-9ee6-e7a841862f22".device = "/dev/disk/by-uuid/877310a4-b495-4060-9ee6-e7a841862f22";
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.initrd.kernelModules = ["amdgpu"];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];