2024-04-16 08:34:06 -05:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
2024-05-06 13:30:36 -05:00
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
2024-04-16 08:34:06 -05:00
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
|
|
{
|
2024-05-06 13:30:36 -05:00
|
|
|
|
imports =
|
|
|
|
|
|
[ # Include the results of the hardware scan.
|
2024-05-07 10:13:51 -05:00
|
|
|
|
./ceph.nix
|
2024-05-06 13:30:36 -05:00
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
];
|
2024-04-16 08:34:06 -05:00
|
|
|
|
|
2024-05-06 13:30:36 -05:00
|
|
|
|
# Bootloader.
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-04-16 08:34:06 -05:00
|
|
|
|
|
2024-05-06 14:06:06 -05:00
|
|
|
|
networking = {
|
|
|
|
|
|
hostName = "jeremiah"; # Define your hostname.
|
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
|
defaultGateway = {
|
|
|
|
|
|
address = " 10.42.1.1";
|
|
|
|
|
|
interface = "enp68s0";
|
|
|
|
|
|
};
|
|
|
|
|
|
interfaces = {
|
|
|
|
|
|
enp68s0 = {
|
|
|
|
|
|
ipv4.addresses = [ {
|
|
|
|
|
|
address = "10.42.1.8";
|
|
|
|
|
|
prefixLength = 16;
|
|
|
|
|
|
} {
|
|
|
|
|
|
address = "10.42.100.1";
|
|
|
|
|
|
prefixLength = 16;
|
|
|
|
|
|
} ];
|
|
|
|
|
|
};
|
|
|
|
|
|
enp67s0 = {
|
|
|
|
|
|
ipv4.addresses = [ {
|
|
|
|
|
|
address = "10.201.1.2";
|
|
|
|
|
|
prefixLength = 16;
|
|
|
|
|
|
} ];
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
nameservers = [
|
|
|
|
|
|
"10.42.1.5"
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
2024-05-06 13:30:36 -05:00
|
|
|
|
greg = {
|
2024-04-16 08:54:46 -05:00
|
|
|
|
home = true;
|
2024-05-06 13:30:36 -05:00
|
|
|
|
tailscale.enable = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
btrfs-progs
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
|
|
"/nix" = {
|
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
|
options = [ "subvol=nix" ];
|
|
|
|
|
|
device = "/dev/nvme0n1p1";
|
|
|
|
|
|
};
|
|
|
|
|
|
"/var" = {
|
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
|
options = [ "subvol=var" ];
|
|
|
|
|
|
device = "/dev/nvme0n1p1";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2024-04-16 08:34:06 -05:00
|
|
|
|
}
|