Remove username from home.nix

This commit is contained in:
2022-09-01 12:16:10 -07:00
parent 1de7e7f759
commit 087e65f468

View File

@@ -1,9 +1,8 @@
{ config, pkgs, lib, ... }:
{
home.username = "ttm";
home.homeDirectory = if lib.strings.hasInfix "darwin" pkgs.system
then /Users/ttm else /home/ttm;
home.stateVersion = "22.05";
home.homeDirectory = if lib.strings.hasInfix "darwin" pkgs.system
then /Users/${config.home.username} else /home/${config.home.username};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;