Skip to content

Commit

Permalink
I donk know why isDarwin 2 exists, but needed this change
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 14, 2023
1 parent cbbde04 commit 5705650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .config/home-manager/home.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ config, pkgs, isDarwin, ... }:
{ config, pkgs, ... }:

{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "kachick";
# TODO: How to cover lima? The default is /home/kachick.local
home.homeDirectory = if isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
xdg.configHome = "${config.home.homeDirectory}/.config";
xdg.cacheHome = "${config.home.homeDirectory}/.cache";
xdg.stateHome = "${config.home.homeDirectory}/.local/state";
Expand Down

0 comments on commit 5705650

Please sign in to comment.