Natsu Kagami
c36f5f66b1
Move most things to Cloudflare R2, whilst gotosocial goes to local. Reviewed-on: #5 Co-authored-by: Natsu Kagami <nki@nkagami.me> Co-committed-by: Natsu Kagami <nki@nkagami.me>
20 lines
671 B
Nix
20 lines
671 B
Nix
{ modulesPath, ... }:
|
|
{
|
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
|
boot.loader.grub.device = "/dev/sda";
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
|
boot.initrd.kernelModules = [ "nvme" ];
|
|
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
|
# swap
|
|
swapDevices = [{ device = "/var/swapfile"; size = 4 * 1024; priority = 1024; }];
|
|
zramSwap.enable = true;
|
|
# volumes
|
|
services.btrfs.autoScrub.enable = true;
|
|
fileSystems.data = {
|
|
device = "/dev/disk/by-id/scsi-0HC_Volume_101470796";
|
|
fsType = "btrfs";
|
|
mountPoint = "/mnt/data";
|
|
options = [ "compress=zstd" ];
|
|
};
|
|
}
|