mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 12:12:03 +00:00
27 lines
448 B
Nix
27 lines
448 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.nmasur.presets.services.user;
|
|
in
|
|
|
|
{
|
|
|
|
options.nmasur.presets.services.user.enable = lib.mkEnableOption "macoS user settings";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users."${config.user}" = {
|
|
# macOS user
|
|
home = config.homePath;
|
|
uid = 502;
|
|
# shell = pkgs.fish; # Default shell
|
|
};
|
|
# This might fix the shell issues
|
|
users.knownUsers = [ config.user ];
|
|
|
|
};
|
|
}
|