nixos-servers/machines/default.nix

100 lines
2.3 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%"; };
};
};
};
};
};
};
};
2023-11-29 16:21:18 +00:00
atlas = {
name = "atlas";
hostname = "atlas.hyp";
specificConfig = {
2023-11-29 16:21:18 +00:00
custom = {
ssh = {
useCertificates = true;
hostCert = builtins.readFile ./atlas_host_ed25519-cert.pub;
userCert = builtins.readFile ./atlas_user_ed25519-cert.pub;
};
};
disko.devices = {
disk = {
2023-11-29 16:21:18 +00:00
vdb = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
2023-11-29 16:21:18 +00:00
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
2023-11-29 16:21:18 +00:00
end = "-4G";
content = {
type = "filesystem";
2023-11-29 16:21:18 +00:00
format = "btrfs";
mountpoint = "/";
};
};
2023-11-29 16:21:18 +00:00
swap = { size = "100%"; };
};
};
};
};
};
2023-11-22 17:28:55 +00:00
};
};
}