try to fix username in home manager

This commit is contained in:
Natalie 2025-04-19 11:04:56 -07:00
parent 7ffada5c7b
commit 637042c243
No known key found for this signature in database
GPG key ID: 61F4EAEB0C9C3D5F
2 changed files with 7 additions and 0 deletions

View file

@ -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.

View file

@ -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