diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 9a4950b..e4ffe3f 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -3,11 +3,13 @@ config, pkgs, lib, + currentSystemUser, ... }: { programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;}; home = { + username = currentSystemUser; homeDirectory = "/Users/nmarks/"; # Home Manager needs a bit of information about you and the paths it should # manage. diff --git a/lib/mkSystem.nix b/lib/mkSystem.nix index 0bb91cf..e8fe62e 100644 --- a/lib/mkSystem.nix +++ b/lib/mkSystem.nix @@ -30,6 +30,11 @@ hostConfig = ../hosts/${host}/configuration.nix; homeConfig = ../hosts/${host}/home.nix; + homeDir = + if darwin + then "/Users/nmarks/" + else "/home/nmarks"; + # NixOS vs nix-darwin functions systemFunc = if darwin