77 lines
1.7 KiB
Nix
77 lines
1.7 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.
|
||
{ modulesPath
|
||
, ...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/profiles/qemu-guest.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
disko.devices = {
|
||
disk = {
|
||
sda = {
|
||
type = "disk";
|
||
device = "/dev/sda";
|
||
content = {
|
||
type = "table";
|
||
format = "gpt";
|
||
partitions = [
|
||
{
|
||
name = "ESP";
|
||
start = "0";
|
||
end = "1GiB";
|
||
fs-type = "fat32";
|
||
bootable = true;
|
||
content = {
|
||
type = "filesystem";
|
||
format = "vfat";
|
||
mountpoint = "/boot";
|
||
};
|
||
}
|
||
{
|
||
name = "zfs";
|
||
start = "1GiB";
|
||
end = "100%";
|
||
content = {
|
||
type = "zfs";
|
||
pool = "zroot";
|
||
};
|
||
}
|
||
];
|
||
};
|
||
};
|
||
};
|
||
zpool = {
|
||
zroot = {
|
||
type = "zpool";
|
||
rootFsOptions = {
|
||
compression = "lz4";
|
||
"com.sun:auto-snapshot" = "false";
|
||
};
|
||
|
||
datasets = {
|
||
"root" = {
|
||
type = "zfs_fs";
|
||
mountpoint = null;
|
||
};
|
||
"root/nixos" = {
|
||
type = "zfs_fs";
|
||
mountpoint = "/";
|
||
};
|
||
"root/home" = {
|
||
type = "zfs_fs";
|
||
mountpoint = "/home";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
}
|