user: define default home directory using username

sh-initrd-on-root
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"