try to fix username in home manager
2 files changed, 7 insertions(+), 0 deletions(-)
hosts/laptop/home.nix+2
| ... | ... | @@ -3,11 +3,13 @@ |
| 3 | 3 | config, |
| 4 | 4 | pkgs, |
| 5 | 5 | lib, |
| 6 | currentSystemUser, |
| 6 | 7 | ... |
| 7 | 8 | }: { |
| 8 | 9 | programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;}; |
| 9 | 10 | |
| 10 | 11 | home = { |
| 12 | username = currentSystemUser; |
| 11 | 13 | homeDirectory = "/Users/nmarks/"; |
| 12 | 14 | # Home Manager needs a bit of information about you and the paths it should |
| 13 | 15 | # manage. |
lib/mkSystem.nix+5
| ... | ... | @@ -30,6 +30,11 @@ |
| 30 | 30 | hostConfig = ../hosts/${host}/configuration.nix; |
| 31 | 31 | homeConfig = ../hosts/${host}/home.nix; |
| 32 | 32 | |
| 33 | homeDir = |
| 34 | if darwin |
| 35 | then "/Users/nmarks/" |
| 36 | else "/home/nmarks"; |
| 37 | |
| 33 | 38 | # NixOS vs nix-darwin functions |
| 34 | 39 | systemFunc = |
| 35 | 40 | if darwin |