snowflake/hosts/kaze/hardware.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
{ lib, modulesPath, ... }:
2024-01-05 11:12:11 -05:00
{
2024-02-08 12:04:15 -05:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
2024-01-05 11:12:11 -05:00
boot = {
2024-02-08 12:04:15 -05:00
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
loader.grub = {
enable = true;
configurationLimit = 5;
device = "/dev/vda";
useOSProber = true;
};
initrd = {
2024-02-08 12:04:15 -05:00
availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
"virtio_blk"
];
kernelModules = [ ];
};
2024-01-05 11:12:11 -05:00
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/9cb414ab-0bb4-4db7-b77e-7d2a8cafd657";
fsType = "ext4";
};
"/var/lib/slab" = {
device = "/dev/disk/by-uuid/733a3f7b-b232-4b34-8742-460a67d8f1d0";
fsType = "ext4";
};
2024-01-05 12:13:09 -05:00
};
2024-02-08 12:04:15 -05:00
swapDevices = [ { device = "/dev/disk/by-uuid/100a4262-ce57-47a7-b99a-f124a8e369de"; } ];
2024-01-05 11:12:11 -05:00
# 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.ens3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}