Skip to content

Commit

Permalink
Simplify to use imported function
Browse files Browse the repository at this point in the history
If it is correct understanding...
  • Loading branch information
kachick committed Jul 14, 2023
1 parent f6e8b3e commit cbbde04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# paths it should manage.
home.username = "kachick";
# TODO: How to cover lima? The default is /home/kachick.local
home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
home.homeDirectory = if 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 cbbde04

Please sign in to comment.