27 lines
448 B
Nix
Raw Permalink Normal View History

2025-01-20 22:35:40 -05:00
{
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 ];
};
}