2023-12-19 08:31:00 -05:00
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./zfs-config.nix
|
|
|
|
|
./common
|
2023-12-19 09:28:37 -05:00
|
|
|
|
./common/sites/gifford
|
|
|
|
|
./common/server
|
2023-12-19 08:31:00 -05:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
|
grub = {
|
|
|
|
|
# Use the GRUB 2 boot loader.
|
|
|
|
|
enable = true;
|
|
|
|
|
version = 2;
|
|
|
|
|
# efiSupport = true;
|
|
|
|
|
# efiInstallAsRemovable = false;
|
|
|
|
|
# Define on which hard drive you want to install Grub.
|
2023-12-19 09:28:37 -05:00
|
|
|
|
device = "/dev/disk/by-uuid/caab3f5b-b264-4070-8a98-fb267ed31280"; # or "nodev" for efi only
|
2023-12-19 08:31:00 -05:00
|
|
|
|
};
|
|
|
|
|
# efi.efiSysMountPoint = "/boot/efi"; # (part of the generated default)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking = {
|
2023-12-19 09:28:37 -05:00
|
|
|
|
hostName = "gifford-compute-1"; # Define your hostname.
|
|
|
|
|
hostId = "00806fc9"; # required by ZFS
|
2023-12-19 08:31:00 -05:00
|
|
|
|
# Open ports in the firewall.
|
|
|
|
|
firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
|
# firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
# Pick only one of the below networking options.
|
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
# networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
console = {
|
|
|
|
|
# keyMap = "us";
|
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.xserver.layout = "us";
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
2023-12-19 09:28:37 -05:00
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
2023-12-19 08:31:00 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|