infra/build04/hardware-configuration.nix

84 lines
1.8 KiB
Nix
Raw Normal View History

2021-08-17 20:31:59 +02:00
# 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.
{
2022-12-30 20:49:32 +01:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
2021-08-17 20:31:59 +02:00
2022-12-30 20:49:32 +01:00
boot.initrd.availableKernelModules = ["xhci_pci" "virtio_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
2021-08-17 20:31:59 +02:00
2022-12-30 20:49:32 +01:00
disko.devices = {
disk = {
sda = {
type = "disk";
device = "/dev/sda";
content = {
type = "table";
format = "gpt";
partitions = [
{
type = "partition";
name = "ESP";
start = "0";
end = "512MiB";
fs-type = "fat32";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
type = "partition";
name = "zfs";
start = "512MiB";
end = "100%";
content = {
type = "zfs";
pool = "zroot";
};
}
];
};
};
2021-08-17 20:31:59 +02:00
};
2022-12-30 20:49:32 +01:00
zpool = {
zroot = {
type = "zpool";
rootFsOptions = {
compression = "lz4";
"com.sun:auto-snapshot" = "false";
};
2021-08-17 20:31:59 +02:00
2022-12-30 20:49:32 +01:00
datasets = {
"root" = {
zfs_type = "filesystem";
mountpoint = null;
};
"root/nixos" = {
zfs_type = "filesystem";
mountpoint = "/";
};
"root/home" = {
zfs_type = "filesystem";
mountpoint = "/home";
};
};
};
2021-08-17 20:31:59 +02:00
};
2022-12-30 20:49:32 +01:00
};
2021-08-17 20:31:59 +02:00
2022-12-30 20:49:32 +01:00
swapDevices = [];
2021-08-17 20:31:59 +02:00
}