Files
nixos-config/hosts/acheron/hardware-configuration.nix
2026-06-01 23:39:02 -04:00

63 lines
1.5 KiB
Nix

# Do not modify this file! It was generated by 'nixos-generate-config'
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["virtio_pci" "virtio_scsi" "ahci" "sd_mod"];
boot.initrd.kernelModules = ["btrfs"];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-partuuid/REPLACE-ME";
fsType = "btrfs";
options = ["subvol=root" "compress=zstd" "noatime"];
};
fileSystems."/home" = {
device = "/dev/disk/by-partuuid/REPLACE-ME";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd" "noatime"];
};
fileSystems."/nix" = {
device = "/dev/disk/by-partuuid/REPLACE-ME";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
};
fileSystems."/var/log" = {
device = "/dev/disk/by-partuuid/REPLACE-ME";
fsType = "btrfs";
options = ["subvol=var-log" "compress=zstd" "noatime"];
neededForBoot = false;
};
fileSystems."/.snapshots" = {
device = "/dev/disk/by-partuuid/REPLACE-ME";
fsType = "btrfs";
options = ["subvol=snapshots" "compress=zstd" "noatime"];
neededForBoot = false;
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 2 * 1024;
}
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}