universe/hosts/nixos/hardware/default.nix
2025-03-02 16:53:58 +05:00

82 lines
2.1 KiB
Nix

{
config,
lib,
modulesPath,
...
}: {
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"];
};
# fileSystems."/mnt/arch" = {
# device = "/dev/disk/by-uuid/7c552892-f313-438d-91bd-b10fb8c06230";
# fsType = "btrfs";
# options = ["compress=zstd" "subvol=@"];
# };
# fileSystems."/mnt/arch/var/log" = {
# device = "/dev/disk/by-uuid/7c552892-f313-438d-91bd-b10fb8c06230";
# fsType = "btrfs";
# options = ["compress=zstd" "subvol=@log"];
# };
# fileSystems."/mnt/arch/var/cache/pacman/pkg" = {
# device = "/dev/disk/by-uuid/7c552892-f313-438d-91bd-b10fb8c06230";
# fsType = "btrfs";
# options = ["compress=zstd" "subvol=@pkg"];
# };
# fileSystems."/mnt/arch/home" = {
# device = "/dev/disk/by-uuid/7c552892-f313-438d-91bd-b10fb8c06230";
# 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;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}