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
This commit is contained in:
commit
6febf28955
11 changed files with 1094 additions and 0 deletions
45
example/config/hardware-configuration.nix
Normal file
45
example/config/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue