165 lines · 3.1 KB
hostname: {
  pkgs,
  modulesPath,
  ...
}: {
  imports = [
    ./hardware-config-${hostname}.nix
    ./cachix.nix
  ];

  boot = {
    isContainer = false;
    loader.systemd-boot.enable = true;
    loader.efi.canTouchEfiVariables = true;
  };

  networking.hostName = hostname;
  networking.firewall.enable = false;

  time.timeZone = "America/New_York";
  time.hardwareClockInLocalTime = true;

  i18n.defaultLocale = "en_US.UTF-8";
  console = {
    font = "Lat2-Terminus16";
    useXkbConfig = true;
  };

  nix.settings = {
    experimental-features = ["nix-command" "flakes"];
    trusted-users = ["root" "christian"];
  };

  nixpkgs.config = {
    allowUnfree = true;
    cudaSupport = true;
  };

  environment.variables = {
    GDK_SCALE = "2";