Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos defaultUserShell #2017

Open
dezren39 opened this issue Jul 6, 2024 · 4 comments
Open

nixos defaultUserShell #2017

dezren39 opened this issue Jul 6, 2024 · 4 comments

Comments

@dezren39
Copy link
Contributor

dezren39 commented Jul 6, 2024

hi i want to use ysh or maybe osh as my default shell in nixos, for nushell I just set it like so

defaultUserShell = pkgs.nushell;

doing the same doesn't work for oils.

I'm not sure if i need to make a nixos module, or maybe it's because oils-for-unix and oil both have multiple binaries? it may be that a package for ysh and osh is needed, or maybe the oils-for-unix package could have embedded functions? I dunno. I think I could hack this to work as a custom shell, but it would be nice if the nix package itself did it 'right'.

I know this isn't the nixpkgs repo, but it's uh.. a bit busy there. If I get time and find a solution I'll comment here.

@dezren39
Copy link
Contributor Author

dezren39 commented Jul 6, 2024

ps there is an oil and an oils-for-unix package, each unique full packages. maybe keep the oil name to not affect existing configurations, but as an alias to oils-for-unix or something.

@dezren39
Copy link
Contributor Author

dezren39 commented Jul 7, 2024

ahh oil is the python compile? ok that answers one question

@dezren39
Copy link
Contributor Author

dezren39 commented Jul 7, 2024

maybe it would be good to have a home-manager or nixos module or both to configure default shopt and which pkgs between ysh/osh etc

@andychu
Copy link
Contributor

andychu commented Jul 7, 2024

Yes the difference between the two tarballs explained in the "packaging guidelines" - https://www.oilshell.org/release/0.22.0/

(the oil tarball will go away eventually)

I'm not familiar with home-manager but there are a couple dirs to make for history and rc files - https://www.oilshell.org/release/0.22.0/doc/getting-started.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants