{ lib, pkgs, ... }: { # Common packages that every system will use environment.systemPackages = with pkgs; [ git vim neovim usbutils coreutils pciutils patchelf htop ] ++ lib.optionals pkgs.stdenv.isLinux (with pkgs; [ systemd lshw dmidecode nix-ld ]) ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ # nothing here, yet ]); # Common environment variables that every system will use environment.variables.EDITOR = "nvim"; }