snowflake/hosts/arashi/hardware.nix

47 lines
1,018 B
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
{ lib, modulesPath, ... }:
2023-06-18 11:21:06 -04:00
{
2024-02-08 12:04:15 -05:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
2023-06-18 11:21:06 -04:00
boot = {
2024-02-08 12:04:15 -05:00
kernelModules = [ ];
kernel.sysctl = {
"kernel.shmmax" = 100663296;
};
extraModulePackages = [ ];
loader.grub = {
enable = true;
configurationLimit = 5;
device = "/dev/sda";
useOSProber = false;
};
initrd = {
2024-02-08 12:04:15 -05:00
availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
kernelModules = [ ];
};
2023-06-18 11:21:06 -04:00
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/3fd88f1f-cec3-4737-b9d0-6c8f026c3927";
fsType = "ext4";
};
"/nas/restic" = {
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/arashi";
fsType = "nfs";
};
2023-12-31 12:51:49 -05:00
};
2024-02-08 12:04:15 -05:00
swapDevices = [ { device = "/dev/disk/by-uuid/e9eb4b6a-e9a1-4616-8c82-349d2f38d140"; } ];
2023-06-18 11:21:06 -04:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}