nixconf/systems/x86_64-linux/jellydonut/hardware.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

2024-01-15 22:30:41 +00:00
{
config,
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-01-15 22:30:41 +00:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/154d39eb-7baf-4a89-8a8d-5a4f8a51a423";
fsType = "btrfs";
options = [ "subvol=rootfs" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4003-0448";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/154d39eb-7baf-4a89-8a8d-5a4f8a51a423";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/154d39eb-7baf-4a89-8a8d-5a4f8a51a423";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/df712b0c-06b2-4b4f-9b65-b362857e43d7"; }
];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}