mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 22:00:14 +00:00
replace manual home dir with config option
This commit is contained in:
@ -1,19 +1,8 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
users.users."${config.user}" = { # macOS user
|
||||
home = "/Users/${config.user}";
|
||||
home = config.homePath;
|
||||
shell = pkgs.zsh; # Default shell
|
||||
};
|
||||
|
||||
home-manager.users.${config.user} = {
|
||||
|
||||
accounts.email.accounts.home = {
|
||||
passwordCommand = lib.mkForce
|
||||
"${pkgs.age}/bin/age --decrypt --identity /Users/${config.user}/.ssh/id_ed25519 ${
|
||||
builtins.toString ./mailpass.age
|
||||
}";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user