Automate home path setting

This commit is contained in:
2024-10-09 19:19:49 +01:00
parent 96233cb3e1
commit 3634b35e87

View File

@@ -4,14 +4,15 @@
let
inherit (lib) mkIf optionals;
inherit (pkgs.stdenv) isLinux isDarwin; #GNOME on Linux
userName = "trude";
in
{
# =======================================================================
# ----------------------- HOME & INSTALLED PACKAGES ---------------------
# =======================================================================
home.username = "trude";
home.homeDirectory = "/home/trude";
home.username = userName;
home.homeDirectory = if isLinux then "/home/${userName}" else "/Users/${userName}";
home.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;