2025-01-28 18:24:07 -05:00

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 ];
};
}