2025-03-02 11:53:58 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
2025-03-02 19:00:20 +00:00
|
|
|
system,
|
2025-03-02 11:53:58 +00:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
boot.kernelParams = [
|
|
|
|
"video=DP-1:3440x1440@100"
|
|
|
|
"video=HDMI-A-1:1920x1200@60"
|
|
|
|
];
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/eac97f4e-9e1b-4e9e-bf7c-726328f347bc";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/C2C4-53B2";
|
|
|
|
fsType = "vfat";
|
|
|
|
options = ["fmask=0077" "dmask=0077"];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/mnt/data" = {
|
|
|
|
device = "/dev/disk/by-partlabel/data";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = ["compress=zstd" "subvol=@Data"];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/mnt/data_home" = {
|
|
|
|
device = "/dev/disk/by-partlabel/data";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = ["compress=zstd" "subvol=@Home"];
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [];
|
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
hardware.graphics = {
|
|
|
|
enable = true;
|
|
|
|
enable32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver.videoDrivers = ["displaylink" "modesetting" "amdgpu"];
|
|
|
|
virtualisation.vmware.host.enable = true;
|
|
|
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|