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, config,
pkgs, pkgs,
lib, lib,
currentSystemUser,
... ...
}: { }: {
programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;}; programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;};
home = { home = {
username = currentSystemUser;
homeDirectory = "/Users/nmarks/"; homeDirectory = "/Users/nmarks/";
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.

View file

@ -30,6 +30,11 @@
hostConfig = ../hosts/${host}/configuration.nix; hostConfig = ../hosts/${host}/configuration.nix;
homeConfig = ../hosts/${host}/home.nix; homeConfig = ../hosts/${host}/home.nix;
homeDir =
if darwin
then "/Users/nmarks/"
else "/home/nmarks";
# NixOS vs nix-darwin functions # NixOS vs nix-darwin functions
systemFunc = systemFunc =
if darwin if darwin