user: define default home directory using username
This commit is contained in:
parent
3c05f5e5a9
commit
2954a57cf7
2 changed files with 2 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
|
||||
home.username = "val";
|
||||
home.homeDirectory = "/home/val";
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
|
|
Loading…
Reference in a new issue