krops-lamassu/example/config/hardware-configuration.nix
padreug 6febf28955 Initial commit: krops-lamassu deployment template
NixOS deployment template for Lamassu Bitcoin ATM server using
nix-bitcoin and krops.

Features:
- Lamassu server with PostgreSQL and auto-generated secrets
- TLS certificates (self-signed)
- Test VM for local development
- Template structure for easy customization
2026-01-11 23:57:22 +01:00

45 lines
1.4 KiB
Nix

# Hardware configuration
#
# FIXME: Replace this file with the output of 'nixos-generate-config --show-hardware-config'
# run on your target machine.
#
# This is a placeholder that should work for most x86_64 systems.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
# FIXME: Adjust kernel modules for your hardware
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
boot.extraModulePackages = [ ];
# FIXME: Set your filesystem configuration
# Use 'blkid' or 'lsblk -f' to find UUIDs
fileSystems."/" = {
device = "/dev/disk/by-uuid/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/XXXX-XXXX";
fsType = "vfat";
};
# FIXME: Set swap device if needed
# swapDevices = [
# { device = "/dev/disk/by-uuid/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; }
# ];
# FIXME: Set your platform (x86_64-linux, aarch64-linux, etc.)
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
# For Intel CPUs:
# hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# For AMD CPUs:
# hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}