user: define default home directory using username
parent
3c05f5e5a9
commit
2954a57cf7
|
@ -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 New Issue