nix: smarter default home path

This commit is contained in:
Primrose 2024-06-23 23:40:00 +02:00
parent b0ae4af80d
commit 2f469059a4
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 7 additions and 11 deletions

View file

@ -5,7 +5,7 @@
...
}:
let
inherit (pkgs) myPkgs;
inherit (pkgs) myPkgs stdenv;
in
{
options.extra = {
@ -37,7 +37,7 @@ in
programs.home-manager.enable = true;
home = {
username = lib.mkDefault "leana";
homeDirectory = lib.mkDefault "/home/leana";
homeDirectory = lib.mkDefault (if stdenv.isLinux then "/home/leana" else "/Users/leana");
stateVersion = "24.05";
};