Massive sweeping changes

This commit is contained in:
BuyMyMojo 2025-04-02 10:21:41 +11:00
parent cd265fa1a7
commit 40cac7a6f7
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
13 changed files with 484 additions and 144 deletions

View file

@ -1,32 +1,47 @@
# 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,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ea653cf0-e131-4241-978a-eb05cf9fd482";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/ea653cf0-e131-4241-978a-eb05cf9fd482";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C6A3-F1FD";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4585864a-d7e7-4b21-b1fd-4757e244e8bb"; }
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C6A3-F1FD";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/4585864a-d7e7-4b21-b1fd-4757e244e8bb"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
@ -38,4 +53,23 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware = {
graphics = {
# === vulkan/mesa ===
enable = true;
enable32Bit = true;
# package = unstable.mesa;
# === vulkan/mesa ===
# === amdvlk driver ===
};
amdgpu.amdvlk = {
enable = true;
support32Bit.enable = true;
};
# === amdvlk driver ===
# openrazer.enable = true;
};
}