{ config, lib, pkgs, ... }: let nc = config.nathan.config; in with lib; { config = mkMerge [{ # Configure our user, if enabled users.users."${nc.user}" = { # Darwin is special home = if pkgs.stdenv.isDarwin then "/Users/${nc.user}" else "/home/${nc.user}"; description = "Nathan McCarty"; shell = pkgs.fish; }; # If we isntall the user, make them trusted nix.settings.trusted-users = [ "${nc.user}" ]; # If we setup the user, install the shell as well environment.systemPackages = [ pkgs.fish ]; # Configure the timezone time.timeZone = "America/New_York"; }]; }