nix-config/hosts/nixos/porthos/hardware.nix

29 lines
452 B
Nix
Raw Normal View History

# Hardware configuration
{ modulesPath, ... }:
{
2021-02-07 11:44:53 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2021-02-07 11:44:53 +01:00
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
2021-02-07 11:44:53 +01:00
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
2021-02-07 11:44:53 +01:00
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
2021-02-07 11:44:53 +01:00
];
my.hardware = {
firmware = {
cpuFlavor = "intel";
};
};
}