# Common configuration shared between NixOS and Darwin { lib, pkgs, ... }: { config = { time.timeZone = "America/Los_Angeles"; environment.systemPackages = with pkgs; [ git glances pciutils tree usbutils vim ] ++ lib.optionals pkgs.stdenv.isLinux [ ghostty.terminfo # So tmux works when SSH'ing from ghostty ]; nix = { package = pkgs.nix; settings = { experimental-features = [ "nix-command" "flakes" ]; max-jobs = "auto"; trusted-users = [ "johno" ]; substituters = [ "http://john-endesktop.oglehome:5000" ]; trusted-public-keys = [ "harmonia.john-endesktop:1iGr4xZrsR7WtXOlPCgFF3LcODYBpu+B3TS54MyBn4M=" ]; fallback = true; connect-timeout = 5; }; gc = { automatic = true; options = "--delete-older-than 10d"; }; }; nixpkgs.config.allowUnfree = true; }; }