mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
This includes configuring Nix Bitcoin within my existing flake. The intent is to run Bitcoin Core, LND, Electrs, Mempool, and Alby Hub here instead of via Umbrel. Note, Fulcrum was tried but kept crashing and losing state... which is not okay with me.
57 lines
1.9 KiB
Nix
57 lines
1.9 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||
boot.initrd.kernelModules = [ "nvme" ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "zroot/root";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "zroot/root/nix";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "zroot/root/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
# { device = "/dev/disk/by-uuid/02A5-6FCC";
|
||
{ device = "/dev/disk/by-partlabel/disk-sdc-BOOT";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/boot-fallback" =
|
||
# { device = "/dev/disk/by-uuid/02F1-B12D";
|
||
{ device = "/dev/disk/by-partlabel/disk-sdd-BOOT-FALLBACK";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|