Files
alo-cluster/hosts/alo-cloud-1/hardware.nix
2024-09-13 13:38:15 +01:00

56 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"virtio_pci"
"virtio_scsi"
"usbhid"
"sr_mod"
];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/4275af2a-648c-4778-8090-7e5ef5c2846b";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/4275af2a-648c-4778-8090-7e5ef5c2846b";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/4275af2a-648c-4778-8090-7e5ef5c2846b";
fsType = "btrfs";
options = [ "subvol=persist" ];
};
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/4275af2a-648c-4778-8090-7e5ef5c2846b";
fsType = "btrfs";
options = [ "subvol=log" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/FF9C-DC81";
fsType = "vfat";
options = [ "umask=0077" ]; # to avoid the random seed being world readable
};
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}