user: define default home directory using username

This commit is contained in:
Zynh Ludwig 2024-07-11 21:19:29 +00:00
parent 3c05f5e5a9
commit 2954a57cf7
2 changed files with 2 additions and 3 deletions

View file

@ -8,9 +8,9 @@ in
enable = lib.mkEnableOption "user";
};
config = lib.mkIf cfg.enable {
config = lib.mkIf cfg.enable rec {
home.username = lib.mkDefault "ravenshade";
home.homeDirectory = lib.mkDefault "/home/ravenshade";
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"

View file

@ -15,7 +15,6 @@
home.username = "val";
home.homeDirectory = "/home/val";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"