nix-conf/systems/zap/default.nix

109 lines
2.3 KiB
Nix
Raw Normal View History

2024-01-18 20:12:43 +01:00
{ config, pkgs, lib, modulesPath, ... }:
{
jopejoe1 = {
local.enable = true;
nix.enable = true;
user = {
jopejoe1.enable = true;
root.enable = true;
};
ssh.enable = true;
};
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
2024-01-19 08:09:44 +01:00
networking.useDHCP = false;
2024-01-18 20:12:43 +01:00
boot.loader = {
grub = {
enable = true;
device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
};
};
2024-01-19 08:09:44 +01:00
services.cloud-init.enable = true;
services.cloud-init.network.enable = true;
2024-01-19 08:42:55 +01:00
networking.firewall = {
enable = true;
2024-01-19 09:18:17 +01:00
allowedTCPPorts = [ 80 ];
allowedUDPPorts = [ 80 ];
2024-01-19 08:42:55 +01:00
};
2024-01-19 08:09:44 +01:00
# networking = {
# wireless.enable = lib.mkForce false;
# interfaces.eth0 = {
# ipv4.addresses = [{
# address = "134.255.219.135";
# prefixLength = 24;
# }];
# };
# interfaces.ens18 = {
# ipv4.addresses = [{
# address = "185.249.199.92";
# prefixLength = 24;
# }];
# };
# defaultGateway = "134.255.219.1";
# };
2024-01-18 20:12:43 +01:00
time.timeZone = "Europe/Berlin";
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
2024-01-18 21:37:22 +01:00
services.hedgedoc = {
2024-01-18 21:39:53 +01:00
enable = true;
2024-01-19 08:12:20 +01:00
settings.domain = "missing.ninja";
settings.host = "missing.ninja";
2024-01-19 09:18:17 +01:00
settings.port = 80;
2024-01-18 21:37:22 +01:00
};
2024-01-19 01:29:16 +01:00
services.surrealdb.enable = true;
2024-01-18 21:37:22 +01:00
2024-01-18 20:12:43 +01:00
console = {
enable = true;
};
disko.devices = {
disk = {
vdb = {
device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
type = "disk";
content = {
type = "table";
format = "msdos";
partitions = [
2024-01-19 08:09:44 +01:00
# {
# name = "ESP";
# start = "1M";
# end = "500M";
# bootable = true;
# content = {
# type = "filesystem";
# format = "vfat";
# mountpoint = "/boot";
# };
# }
2024-01-18 20:12:43 +01:00
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
2024-01-19 08:09:44 +01:00
format = "ext4";
2024-01-18 20:12:43 +01:00
mountpoint = "/";
};
}
];
};
};
};
};
}