28 lines
505 B
Nix
28 lines
505 B
Nix
{ ... }:
|
|
{
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/vda";
|
|
};
|
|
|
|
networking = {
|
|
hostName = "ikiwiki";
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 80 8443 ];
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
# partition data disk with `sudo mkfs.ext4 /dev/vdx`
|
|
# label data disk with `e2label /dev/vdx "data"`
|
|
"/mnt/data" = {
|
|
device = "/dev/disk/by-label/data";
|
|
fsType = "ext4";
|
|
autoResize = true;
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|