infra/hosts/build04/hardware-configuration.nix

78 lines
1.7 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-31 07:24:17 +01:00
{ modulesPath
, ...
2022-12-30 20:49:32 +01:00
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
2021-08-17 20:31:59 +02:00
2022-12-31 07:24:17 +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 = [
{
name = "ESP";
start = "0";
2023-02-24 08:21:18 +01:00
end = "1GiB";
2022-12-30 20:49:32 +01:00
fs-type = "fat32";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "zfs";
2023-02-24 08:21:18 +01:00
start = "1GiB";
2022-12-30 20:49:32 +01:00
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" = {
type = "zfs_fs";
2022-12-30 20:49:32 +01:00
mountpoint = null;
};
"root/nixos" = {
type = "zfs_fs";
2022-12-30 20:49:32 +01:00
mountpoint = "/";
};
"root/home" = {
type = "zfs_fs";
2022-12-30 20:49:32 +01:00
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-31 07:24:17 +01:00
swapDevices = [ ];
2021-08-17 20:31:59 +02:00
}