Skip to content

Commit

Permalink
add possible option for darwin shell commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
nmasur committed Aug 2, 2024
1 parent 3b494be commit 2ad5411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/darwin/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# shell = pkgs.fish; # Default shell
};

# This might fix the shell issues
# users.knownUsers = [ config.user ];

home-manager.users.${config.user} = {

# Default shell setting doesn't work
Expand Down

2 comments on commit 2ad5411

@eblume
Copy link

@eblume eblume commented on 2ad5411 Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmasur Pardon for peeking but I think we both hit this issue recently. I found an issue in nix-darwin which seems to brush close on what may be your issue as well.

In my case, I was able to "resolve" (for now) the problems I was seeing (weird issues with an inconsistent PATH on a newly provisioned nix-darwin laptop) which I believe may have been caused by previously installing fish via homebrew and not backing that out before running nix-darwin. Though to be honest, this laptop is deeply haunted by corporate tech policies, so who knows?

Let me know if you'd like to combine efforts at all here.

@nmasur
Copy link
Owner Author

@nmasur nmasur commented on 2ad5411 Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eblume Good catch, I did add this recently for my own notes. I didn't enable it just because I'm a little afraid of managing it with nix-darwin, just because it's also the "admin" user and the description states the following:

List of users owned and managed by nix-darwin. Used to indicate what users are safe to create/delete based on the configuration. Don’t add the admin user or other system users to this.

I don't want to delete it by accident, so I'm leaving it out for now. Mostly, I make do by just setting fish as my SHELL in the environment variables

      home.sessionVariables = {
        SHELL = "${pkgs.fish}/bin/fish";
      };

I can't speak to your homebrewed fish PATH problems as I don't think I have those issues myself. But I would have to see more details on what's going on. My machine is also corporate-controlled so there are definitely some things I'm afraid to or unable to change, and some applications that I can't quite setup in Nix. But that's usually workable enough for me, I haven't run into any major blocks so far.

Please sign in to comment.