Initial server configuration

This commit is contained in:
2026-01-22 10:50:59 -05:00
commit 0e39daf16b
6 changed files with 212 additions and 0 deletions

38
modules/disk-config.nix Normal file
View File

@@ -0,0 +1,38 @@
{ lib, ... }:
{
disko.devices.disk.os = {
# device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_110097335";
device = lib.mkDefault "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
type = "EF02";
size = "1M";
};
ESP = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/";
mountOptions = [
"defaults"
"pquota"
];
};
};
};
};
};
}