
This machine is intended to host web applications. Initially [Lemmy](https://join-lemmy.org/), but perhaps more down the line. The initial PR only deals with setting up the machine and required infra like DNS, not setting up Lemmy itself which will be a follow-up.
57 lines
1.4 KiB
Nix
57 lines
1.4 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 = [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
disko.devices = {
|
||
disk = {
|
||
sda = {
|
||
type = "disk";
|
||
device = "/dev/sda";
|
||
content = {
|
||
type = "gpt";
|
||
partitions = {
|
||
grub = {
|
||
name = "grub";
|
||
size = "1M";
|
||
type = "ef02";
|
||
};
|
||
esp = {
|
||
name = "ESP";
|
||
type = "EF00";
|
||
size = "500M";
|
||
content = {
|
||
type = "filesystem";
|
||
format = "vfat";
|
||
mountpoint = "/boot";
|
||
};
|
||
};
|
||
root = {
|
||
name = "root";
|
||
size = "100%";
|
||
content = {
|
||
type = "filesystem";
|
||
# We use xfs because it has support for compression and has a quite good performance for databases
|
||
format = "xfs";
|
||
mountpoint = "/";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
}
|