2023-05-05 11:29:38 -05:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
2023-05-05 15:59:59 -05:00
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
2023-05-05 11:29:38 -05:00
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
2024-10-11 12:28:53 -05:00
|
|
|
|
{ top, ... }:
|
2023-05-05 15:59:59 -05:00
|
|
|
|
let
|
2024-10-03 11:26:39 -05:00
|
|
|
|
wanInterface = "enp2s0";
|
|
|
|
|
|
lanInterface = "enp1s0";
|
|
|
|
|
|
lanIpAddress = "10.42.1.7";
|
2023-05-05 15:59:59 -05:00
|
|
|
|
in
|
2023-05-05 11:29:38 -05:00
|
|
|
|
|
|
|
|
|
|
{
|
2024-10-11 12:28:53 -05:00
|
|
|
|
imports = [
|
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
top.btc.nixosModules.default
|
|
|
|
|
|
./bitcoin.nix
|
|
|
|
|
|
];
|
2023-05-05 11:29:38 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
# Bootloader
|
|
|
|
|
|
boot = {
|
|
|
|
|
|
loader = {
|
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
|
efi = {
|
|
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
|
|
efiSysMountPoint = "/boot/";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
extraModprobeConfig = "vboxdrv";
|
|
|
|
|
|
};
|
|
|
|
|
|
users.users.greg.extraGroups = [ "vboxusers" ];
|
2023-09-01 23:42:22 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
networking = {
|
|
|
|
|
|
hostName = "hosea";
|
|
|
|
|
|
nameservers = [ "10.42.1.5" ];
|
|
|
|
|
|
defaultGateway = "10.42.1.1";
|
|
|
|
|
|
interfaces = {
|
|
|
|
|
|
"${wanInterface}".useDHCP = true;
|
|
|
|
|
|
"${lanInterface}" = {
|
|
|
|
|
|
useDHCP = false;
|
2024-10-11 12:28:53 -05:00
|
|
|
|
ipv4.addresses = [
|
|
|
|
|
|
{
|
|
|
|
|
|
address = lanIpAddress;
|
|
|
|
|
|
prefixLength = 16;
|
|
|
|
|
|
}
|
|
|
|
|
|
];
|
2024-10-03 11:26:39 -05:00
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2023-05-05 11:29:38 -05:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
# Serves as the router, DHCP, and DNS for the site
|
|
|
|
|
|
greg = {
|
|
|
|
|
|
tailscale.enable = true;
|
|
|
|
|
|
home = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
services = {
|
|
|
|
|
|
# Configure keymap
|
|
|
|
|
|
xserver.xkb = {
|
|
|
|
|
|
layout = "us";
|
|
|
|
|
|
variant = "";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2023-05-05 11:29:38 -05:00
|
|
|
|
}
|