nixos-servers/machines/default.nix

87 lines
1.9 KiB
Nix
Raw Normal View History

{
jefke = {
name = "jefke";
hostname = "jefke.hyp";
2023-11-22 17:28:55 +00:00
specificConfig = {
custom = {
dataDisk.enable = true;
ssh = {
useCertificates = true;
2023-11-22 17:28:55 +00:00
hostCert = builtins.readFile ./jefke_host_ed25519-cert.pub;
userCert = builtins.readFile ./jefke_user_ed25519-cert.pub;
};
2023-11-24 09:31:23 +00:00
terraformDatabase.enable = true;
2023-11-22 17:28:55 +00:00
};
disko.devices = {
disk = {
vdb = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
end = "-4G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/";
};
};
swap = { size = "100%"; };
};
};
};
};
};
};
};
bancomart = {
name = "bancomart";
hostname = "bancomart.dmz";
specificConfig = {
disko.devices = {
disk = {
vda = {
device = "/dev/vda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
2023-11-22 17:28:55 +00:00
};
};
}