snowflake/hosts/kariru/hardware.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
{ lib, modulesPath, ... }:
2023-05-17 10:13:01 -04:00
{
2024-02-08 12:04:15 -05:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
2023-05-17 10:13:01 -04:00
boot = {
2024-02-08 12:04:15 -05:00
kernelModules = [ ];
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-12-13 11:21:48 -05:00
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/f5a0738c-d027-4ffb-82ec-9901ca6b310b";
fsType = "ext4";
};
"/media" = {
device = "192.168.1.199:/mnt/Sutoreji/media";
fsType = "nfs";
};
"/stash" = {
device = "192.168.1.199:/mnt/Sutoreji/stash";
fsType = "nfs";
};
"/nas/restic" = {
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/kariru";
fsType = "nfs";
};
2023-12-31 12:51:49 -05:00
};
2024-02-08 12:04:15 -05:00
swapDevices = [ { device = "/dev/disk/by-uuid/f28bad28-ae14-4aa7-85c5-47abe46bae56"; } ];
2023-05-17 10:13:01 -04:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}