Add Roeland server

This commit is contained in:
Pim Kunis 2025-07-05 17:30:20 +02:00
parent 9cca44c67b
commit db923b3594
6 changed files with 3572 additions and 0 deletions

View file

@ -28,4 +28,9 @@
system = "x86_64-linux";
nixosModule = import ./lewis/configuration.nix;
};
roeland = {
system = "x86_64-linux";
nixosModule = import ./roeland/configuration.nix;
};
}

View file

@ -0,0 +1,70 @@
{
lib,
config,
...
}: {
config = {
facter.reportPath = ./facter.json;
system.stateVersion = "25.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
deployment = {
targetHost = "192.168.10.40";
targetUser = "root";
tags = ["server"];
};
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
};
};
};
};
};
}

3446
machines/roeland/facter.json Normal file

File diff suppressed because it is too large Load diff