feat: initial kameramann config

This commit is contained in:
Jan-Henrik 2026-04-19 11:26:16 +02:00
parent 85d54363f2
commit c859ace5ef
5 changed files with 61 additions and 1 deletions

View file

@ -28,6 +28,7 @@
hosts = {
telefonmann = { system = "x86_64-linux"; targetHost = "telefonmann"; };
kameramann = { system = "x86_64-linux"; targetHost = "kameramann"; };
};
systems = nixpkgs.lib.unique (nixpkgs.lib.mapAttrsToList (_: cfg: cfg.system) hosts);

View file

@ -0,0 +1,10 @@
{ ... }: {
imports = [
./hardware.nix
./disko.nix
];
networking.hostName = "kameramann";
networking.interfaces.ens18.useDHCP = true;
}

View file

@ -0,0 +1,35 @@
{ ... }: {
disko.devices = {
disk = {
main = {
type = "disk";
# Proxmox VirtIO SCSI (scsi0) → /dev/sda
# Proxmox VirtIO Block (virtio0) → /dev/vda
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -0,0 +1,13 @@
{ ... }: {
services.qemuGuest.enable = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
boot.initrd.availableKernelModules = [
"virtio_pci"
"virtio_scsi" # use "virtio_blk" instead if disk is /dev/vda
"ahci"
"sd_mod"
];
}

View file

@ -3,7 +3,8 @@ let
users = [ jbruhn ];
telefonmann = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEwgqWVjNOgBygI1uaG8P6wQlfr91A+FJS/EHYZbYWlX";
systems = [ telefonmann ];
kameramann = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMkXAM24G3s7EO6eQbwC85Rkb3OhrGZtLZRQMqut9IB5";
systems = [ telefonmann kameramann ];
in
{
"voip-trunk-ewe-host.age".publicKeys = users ++ [ telefonmann ];